Skip to contents

Check for validity of a genclone or snpclone object

Usage

is.snpclone(x)

is.clone(x)

is.genclone(x)

Arguments

x

a genclone or snpclone object

Note

a genclone object will always be a valid genind object and a snpclone object will always be a valid genlight object.

Author

Zhian N. Kamvar

Examples

(sc <- as.snpclone(glSim(100, 1e3, ploid=2, parallel = FALSE), 
                   parallel = FALSE, n.cores = 1L))
#>  ||| SNPCLONE OBJECT |||||||||
#> 
#>  || 100 genotypes,  1,000 binary SNPs, size: 182.6 Kb
#>  0 (0 %) missing data
#> 
#>  || Basic content
#>    @gen: list of 100 SNPbin
#>    @mlg: 100 original multilocus genotypes
#>    @ploidy: ploidy of each individual  (range: 2-2)
#> 
#>  || Optional content
#>    @other: a list containing: ancestral.pops 
#> 
#> NULL
is.snpclone(sc)
#> [1] TRUE
is.clone(sc)
#> [1] TRUE
data(nancycats)
nanclone <- as.genclone(nancycats)
is.genclone(nanclone)
#> [1] TRUE