seqNumAllele: Number of alleles

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Methods.R

Description

Returns the numbers of alleles for each site.

Usage

1
seqNumAllele(gdsfile)

Arguments

gdsfile

a SeqVarGDSClass object

Value

The numbers of alleles for each site.

Author(s)

Xiuwen Zheng

See Also

seqAlleleFreq, seqMissing

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# the GDS file
(gds.fn <- seqExampleFileName("gds"))

# display
f <- seqOpen(gds.fn)

table(seqNumAllele(f))

# close the GDS file
seqClose(f)

Example output

Loading required package: gdsfmt
[1] "/usr/lib/R/site-library/SeqArray/extdata/CEU_Exon.gds"

   2    3 
1346    2 

SeqArray documentation built on Nov. 8, 2020, 5:08 p.m.