validMar: Return a logical vector indicating which are valid SNP...

validMarR Documentation

Return a logical vector indicating which are valid SNP markers.

Description

Return a logical vector indicating which are valid SNP markers.

Usage

validMar(object, chr = NULL, ...)

validMar(object) <- value

## S4 method for signature 'GbsrGenotypeData'
validMar(object, chr)

## S4 replacement method for signature 'GbsrGenotypeData'
validMar(object) <- value

Arguments

object

A GbsrGenotypeData object.

chr

A index to spefcify chromosome to get information.

...

Unused.

value

A logical vector indicating valid markers with the length matching with the number of markers.

Value

A logical vector of the same length with the number of total SNP markers

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)

validMar(gds)

# Close the connection to the GDS file.
closeGDS(gds)


tomoyukif/GBScleanR documentation built on April 27, 2024, 9:06 a.m.