getSamID | R Documentation |
This function returns sample IDs.
getSamID(object, valid = TRUE, parents = FALSE, ...)
## S4 method for signature 'GbsrGenotypeData'
getSamID(object, valid, parents)
object |
A GbsrGenotypeData object. |
valid |
A logical value. See details. |
parents |
A logical value whether to include data for parents or not. |
... |
Unused. |
If valid = TRUE
, the IDs of samples which are labeled TRUE
in the "valid"
column of the "sample" slot will be returned. If you need the number
of over all samples, set valid = FALSE
. validSam()
tells you
which samples are valid.
A character vector of sample IDs.
# Load data in the GDS file and instantiate a [GbsrGenotypeData] object.
gds_fn <- system.file("extdata", "sample.gds", package = "GBScleanR")
gds <- loadGDS(gds_fn)
getSamID(gds)
# 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.