read.pedfile( ) error
0
0
Entering edit mode
kzelaya2 ▴ 10
@kzelaya2-14143
Last seen 7.2 years ago

Hello,

I am simply trying to read in a .ped file in my R script using the read.pedfile( ) function.   

Here is my code:

require(snpStats)

# SNP: DNA variation occuring commonly within a population
#      in a single nucleotide

# STEPS
# read in DNA sequence
ped <- "smri-impute.ped"
DNA_Sequence <- read.pedfile(ped)
# Examine DNA variations at prespecified loci
# Determine Major/Minor allel
# Create chart
# Print results

 

However, I get this error when I run my R script: 

> DNA_Sequence <- read.pedfile(ped)
Error in open.connection(con) : cannot open the connection
In addition: Warning message:
In open.connection(con) :
  cannot open compressed file 'smri-impute.ped', probable reason 'No such file or directory'

How can I fix this issue? Why is it giving me this error?

 

 

R ped file • 823 views
ADD COMMENT

Login before adding your answer.

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