snpgdsSNPListStrand {SNPRelate} | R Documentation |
To get a logical vector, indicating whether allele references of
snplist2
need to be switched, with respect to snplist1
.
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
# open an example dataset (HapMap) genofile <- snpgdsOpen(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 file snpgdsClose(genofile)