cash-extractVar: RA Method: Extract variables from an RA Object

$extractVarR Documentation

RA Method: Extract variables from an RA Object

Description

Method for extracting the private variables of an RA object.

Usage

RAobj$extractVar(nameList)

Arguments

nameList

A list of the variable names to be extracted from the RA object.

Author(s)

Timothy P. Bilton

See Also

RA

Examples

vcffile <- simDS()
rafile <- VCFtoRA(vcffile$vcf)
RAdata <- readRA(rafile)

## extract the depth matrix
depthMat <- RAdata$extractVar(c("ref","alt"))
str(depthMat)

## extract the chromosome and positions
assemblyInfo <- RAdata$extractVar(c("chrom","pos"))
str(assemblyInfo)

tpbilton/GUSbase documentation built on March 8, 2024, 1:35 p.m.