getPloidy | R Documentation |
Get the ploidy of a given population in the input GbsrGenotypeData object.
getPloidy(object, ...)
## S4 method for signature 'GbsrGenotypeData'
getPloidy(object)
object |
A GbsrGenotypeData object. |
... |
Unused. |
An integer value.
setPloidy()
# Load data in the GDS file and instantiate a [GbsrGenotypeData] object.
gds_fn <- system.file("extdata", "sample.gds", package = "GBScleanR")
gds <- loadGDS(gds_fn)
ploidy <- getPloidy(gds)
print(ploidy)
# Close the connection to the GDS file.
closeGDS(gds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.