getPloidy: Get ploidy

getPloidyR Documentation

Get ploidy

Description

Get the ploidy of a given population in the input GbsrGenotypeData object.

Usage

getPloidy(object, ...)

## S4 method for signature 'GbsrGenotypeData'
getPloidy(object)

Arguments

object

A GbsrGenotypeData object.

...

Unused.

Value

An integer value.

See Also

setPloidy()

Examples

# 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)


tomoyukif/GBScleanR documentation built on June 1, 2025, 10:13 p.m.