getCountGenoMissing | R Documentation |
Obtain total missing genotype counts per SNP or per sample
getCountGenoMissing(object, target = "marker", valid = TRUE, prop = FALSE, ...)
## S4 method for signature 'GbsrGenotypeData'
getCountGenoMissing(object, target, valid, prop)
object |
A GbsrGenotypeData object. |
target |
Either of "marker" and "sample". |
valid |
A logical value. See details. |
prop |
A logical value whether to return values as proportions of total missing genotype counts to the total genotype calls or not. |
... |
Unused. |
You need to execute countGenotype()
to calculate sumaary statisticsto be
obtained via this function.
If valid = TRUE
, the chromosome information of markers which are
labeled TRUE
in the sample slot will be returned.
validMar()
tells you which samples are valid.
A numeric vector of (proportion of) missing genotype calls per marker.
gds_fn <- system.file("extdata", "sample.gds", package = "GBScleanR")
gds <- loadGDS(gds_fn)
gds <- countGenotype(gds)
getCountGenoMissing(gds)
closeGDS(gds) # Close the connection to the GDS file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.