Usage
snpgdsFst(gdsobj, population, method=c("W&H02", "W&C84"), sample.id=NULL, snp.id=NULL, autosome.only=TRUE, remove.monosnp=TRUE, maf=NaN, missing.rate=NaN, with.id=FALSE, verbose=TRUE)
Arguments
population
a factor, indicating population information for each
individual
method
"W&H02"
-- relative beta estimator in Weir&Hill 2002,
"W&C84"
-- Fst estimator in Weir&Cockerham 1984
sample.id
a vector of sample id specifying selected samples;
if NULL, all samples are used
snp.id
a vector of snp id specifying selected SNPs;
if NULL, all SNPs are used
autosome.only
if TRUE
, use autosomal SNPs only; if it is a
numeric or character value, keep SNPs according to the specified
chromosome
remove.monosnp
if TRUE, remove monomorphic SNPs
maf
to use the SNPs with ">= maf" only; if NaN, no MAF threshold
missing.rate
to use the SNPs with "
with.id
if TRUE
, the returned value with sample.id
and
sample.id
verbose
if TRUE
, show information