SnpStats - STRING_ELT() error and Fst
0
0
Entering edit mode
Voke AO ▴ 760
@voke-ao-4830
Last seen 10.2 years ago
Hi all, I was attempting to calculate Fst on some 1000 genomes data in binary plink format but I encountered this error below and I'm not quite sure how to get around it. Any suggestions will be greatly appreciated. Thanks Avoks > MySample=read.plink("MyAFR_Plus") > MyAttrib = read.delim("MyAFR", header = TRUE) > MyAttrib = MyAttrib$Pop > FstAFR = Fst(MySample, MAttrib) Error in Fst(MySample, MyAttrib) : STRING_ELT() can only be applied to a 'character vector', not a 'NULL' > sessionInfo() R version 3.0.1 (2013-05-16) Platform: i386-w64-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_xxx LC_CTYPE=English_xxx [3] LC_MONETARY=English_xxx LC_NUMERIC=C [5] LC_TIME=English_xxx attached base packages: [1] grid splines stats graphics grDevices utils datasets [8] methods base other attached packages: [1] hexbin_1.26.2 snpStats_1.10.0 Matrix_1.0-12 lattice_0.20-23 [5] survival_2.37-4 loaded via a namespace (and not attached): [1] BiocGenerics_0.6.0 parallel_3.0.1 > [[alternative HTML version deleted]]
genomes genomes • 1.3k views
ADD COMMENT

Login before adding your answer.

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