Search
Question: read.pedfile( ) error
0
gravatar for kzelaya2
5 weeks ago by
kzelaya20
kzelaya20 wrote:

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?

 

 

ADD COMMENTlink written 5 weeks ago by kzelaya20
Please log in to add an answer.

Help
Access

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