[R] SNPRelate problems

Silvano Cesar da Costa silvano at uel.br
Wed Dec 19 04:16:04 CET 2012


Hi,

I'm trying convert plink files to gds (SNPRelate).
I have the files:  baep.fam, baep.bed and baep.bim

and the program to convert data is:


setwd('C:/Silvano/Incor/Baependi/Dados Baependi/')

library(gdsfmt)        # versão 0.9.10
library(SNPRelate)     # versão 0.9.8

# Arquivos PLINK BED
bed.fn <- system.file("C:/Silvano/Incor/Baependi/Dados Baependi/",
"baep.bed", package="SNPRelate")
bim.fn <- system.file("C:/Silvano/Incor/Baependi/Dados Baependi/",
"baep.bim", package="SNPRelate")
fam.fn <- system.file("C:/Silvano/Incor/Baependi/Dados Baependi/",
"baep.fam", package="SNPRelate")

# Convertendo
snpgdsBED2GDS(bed.fn, fam.fn, bim.fn,
out.gdsfn="C:/Silvano/Incor/Baependi/Dados Baependi/baep.gds",
verbose=TRUE)


but isn't work. The error is:

Start snpgdsBED2GDS ...
Erro em snpgdsBED2GDS(bed.fn, fam.fn, bim.fn, out.gdsfn =
"C:/Silvano/Incor/Baependi/Dados Baependi/baep.gds",  :
  Cannot open the file .


What can I do? What is wrong?

Thanks,


---------------------------------------------
Silvano Cesar da Costa

Universidade Estadual de Londrina
Centro de Ciências Exatas
Departamento de Estatística

Fone: (43) 3371-4346



More information about the R-help mailing list