sampleInfo: Retrieve sample information

Description Usage Arguments Value Author(s) Examples

Description

This function extracts specified sample information from an object of PatCNVData-class. The typical sample information could be "sample.name", "sample.type", and/or "subject.ID".

Usage

1
sampleInfo(obj, sample.name = NULL, attrib = c("sample.name", "sample.type"))

Arguments

obj

an object of PatCNVSession-class or PatCNVData-class

sample.name

a character vector containing sample names. A value of NULL instructs the function to select all the samples

attrib

a character vector containing selected sample attributes. The typical sample information could be "sample.name", "sample.type", and/or "subject.ID".

Value

a data frame or a vector with given sample information attributes specified by attrib

Author(s)

Chen Wang

Examples

1
2
3
4
5
6
7
#=== load a simulation example
config.filename <- 'sim1.ini'
makeSimulation(config.filename)
sim.session <- createSession(config.filename)

#=== print sample information
print(sampleInfo(sim.session))

hshdndx/new-to-CNV documentation built on May 17, 2019, 5:55 p.m.