Description Usage Arguments Value Author(s) See Also Examples
View source: R/SNPRelate_Main.r
Create a list of candidate SNPs based on specified criteria
1 2 |
gdsobj |
a GDS file object ( |
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 |
remove.monosnp |
if TRUE, remove monomorphic SNPs |
maf |
to use the SNPs with ">= maf" only; if NaN, no any MAF threshold |
missing.rate |
to use the SNPs with "<= missing.rate" only; if NaN, no any missing threshold |
verbose |
if TRUE, show information |
Return a list of snp ids.
Xiuwen Zheng
snpgdsSampMissrate
, snpgdsSNPRateFreq
,
snpgdsLDpruning
1 2 3 4 5 6 7 | # open an example dataset (HapMap)
genofile <- openfn.gds(snpgdsExampleFileName())
snpset <- snpgdsSelectSNP(genofile, maf=0.05, missing.rate=0.95)
# close the genotype file
closefn.gds(genofile)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.