zhengxwen / SNPRelate

R package: parallel computing toolset for relatedness and principal component analysis of SNP data (Development version only)
http://www.bioconductor.org/packages/SNPRelate
98 stars 25 forks source link

snpgdsIndInb not reporting sample id? #39

Closed jgx65 closed 6 years ago

jgx65 commented 6 years ago

Hello, and thanks for a great package! I encountered a minor issue

The value of sample from snpgdsIndInb always seems to be set to NULL:

>  genofile <- snpgdsOpen(snpgdsExampleFileName())
> rv <- snpgdsIndInb(genofile, method="mom.visscher")
Estimate individual inbreeding coefficients:
Excluding 365 SNPs on non-autosomes
Excluding 1 SNP (monomorphic: TRUE, MAF: NaN, missing rate: NaN)
Working space: 279 samples, 8,722 SNPs
    using 1 (CPU) core
> rv$sample
NULL

Any chance to fix it? Thanks!

zhengxwen commented 6 years ago

fix it now. please install it from github.