reading ped error when using the snpStats library
0
1
Entering edit mode
kzelaya2 ▴ 10
@kzelaya2-14143
Last seen 7.2 years ago

Hello,

I want to read a ped file using the read.ped() function method from snpStats. The ped file is located inside a folder on my desktop. When I run this code: 

library(snpStats)
data.dir <- '/Users/katezelaya/Desktop/smri-impute'
genoPed.fn <- sprintf("%s/myPlinkTextData.ped", data.dir)
geno_ped <- read.pedfile(genoPed.fn)

It gives me this output error:

​Error in read.pedfile(genoPed.fn) : object 'm' not found
In addition: Warning message:
closing unused connection 3 (/Users/katezelaya/Desktop/smri-impute/myPlinkTextData.ped)

How do I resolve this? 

 

snpstats ped file R • 1.4k views
ADD COMMENT
0
Entering edit mode

Can you paste snpStats' version you're using?

ADD REPLY

Login before adding your answer.

Traffic: 582 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6