Using snpStats to read a pedfile, object 'm' not found
1
2
Entering edit mode
7.4 years ago
nadrianam ▴ 40

Hello,

I'm using snpStats on R to try and read a pedfile and keep running into an issue.

I input this:

> read.pedfile("test.ped")

And get this:

Error in read.pedfile("test.ped") : object 'm' not found

Any idea what 'm' is? I imagine it's a type of variable in the script that converts my file to a snpMatrix but I'm really new to R so I'm not sure how to go about trying to fix it. Thanks!

R plink ped • 2.8k views
ADD COMMENT
0
Entering edit mode

It might be a bug in the software (that variable name is used indeed in read.pedfile) but it is difficult to say. Your best chance is report this at the bioconductor support site or contact the author maintainer directly.

ADD REPLY
0
Entering edit mode

Were you able to get this fixed?

ADD REPLY
0
Entering edit mode

I have the same error !!!!

ADD REPLY
0
Entering edit mode
6.2 years ago

This question just popped up due to fatmasayed93's comment (above). The solution is to not use snpStats - I also had trouble with it.

I wrote my own code in R that can read in PLINK data and that then performs different types of regression analyses, in my case conditional logistic regression on trios: https://github.com/kevinblighe/GwasTriosCLogit

Unfortunately this is not tailoured for general use, so, you will have to follow my code line by line and modify it as needed. It does everything that snpStats can do, though, plus extra.

Kevin

ADD COMMENT

Login before adding your answer.

Traffic: 2031 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