Question: read.pedfile( ) error
gravatar for kzelaya2
3 months ago by
kzelaya210 wrote:


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

Here is my code:


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

# 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?



ADD COMMENTlink written 3 months ago by kzelaya210
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 108 users visited in the last hour