
Last chance! 50% off unlimited learning
Sale ends in
"isVariant"(gdsobj, use.names=FALSE)
SeqVarGDSClass
object with VCF data.TRUE
for cells where the genotype contains an alternate allele.
TRUE
if the
genotype at that location for that sample contains an alternate
allele. A genotype of "0/0" is not variant, while genotypes
"0/1", "1/0", "0/2", etc. are variant.
SeqVarGDSClass
,
applyMethod
,
getGenotype
gds <- seqOpen(seqExampleFileName("gds"))
variant.id <- seqGetData(gds, "variant.id")
sample.id <- seqGetData(gds, "sample.id")
applyMethod(gds, isVariant, variant.id[1:5], sample.id[1:10])
applyMethod(gds, isVariant, variant.id[1:5], sample.id[1:10], use.names=TRUE)
seqClose(gds)
Run the code above in your browser using DataLab