Description Usage Arguments Value Author(s) See Also Examples
View source: R/SNPRelate_Main.r
To get a logical vector, indicating whether allele references of snplist2
need to be switched, with respect to snplist1
.
1 | snpgdsSNPListStrand(snplist1, snplist2, same.strand=FALSE)
|
snplist1 |
the first SNP list object “snpgdsSNPListClass” |
snplist2 |
the second SNP list object “snpgdsSNPListClass” |
same.strand |
|
a logical vector, where TRUE indiciates the allele references need to be switched, and NA indiciates that locus is not in the common snp list.
Xiuwen Zheng
snpgdsSNPList
, snpgdsSNPListStrand
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # open an example dataset (HapMap)
genofile <- openfn.gds(snpgdsExampleFileName())
# to get a snp list object
snplist1 <- snpgdsSNPList(genofile)
snplist2 <- snpgdsSNPList(genofile)
# a common snp list
L <- snpgdsSNPListStrand(snplist1, snplist2)
table(L, exclude=NULL)
# 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.