This function matches available copy number and/or expression data features to the training signatures; using either genomic position or HUGO gene name for copy number features and either Illumina probe names or HUGO gene name for expression features.
matchFeatures(CN = NULL, Exp = NULL,
CN.by.feat = c("gene", "probe"),
Exp.by.feat = c("gene", "probe"),
ref="hg19")
A list with the following elements is returned:
copy number data to classify
copy number training data
expression data to classify
expression training data
iC10 assignments for the training data
annotation data for the copy number features
annotation data for the expression features
Data must be log2 copy number ratios. Two formats are allowed:
- a matrix where each row represents a gene and each column a sample.
In this case CN.by.feat
must be "gene" and the rownames must be the hgnc gene names.
- a data.frame with segmented data. The following columns must exist: 'ID' for the sample name,
'chromosome_name' for the chromosome (must be numeric), 'loc.start' for the start position of the region,
'loc.end' for the end position of the region, 'seg.mean' for the log2ratio of the segment.
If NULL, copy number is not used in the classifier.
Matrix with the expression data to classify. Each row must be a gene or an Illumina probe, and each
column must correspond to a sample.
Rownames must be either Illumina probes, in which case Exp.by.feat
must be "probe"; or hgnc gene names,
in which case Exp.by.feat
must be "gene".
If NULL, expression is not used in the classifier.
Either "probe" or "gene", Default is "probe".
Either "probe" or "gene", Default is "gene".
Either "hg18", "hg19" or "hg38". It is used to match the copy number probes if CN.by.feat
is "probe"
Oscar M Rueda
One of CN
or Exp
must be not NULL.
If matching is done by gene, hgnc gene name is used to match the rownames of the features. A list of
synonym gene names is used (see Map.All
).
For copy number features matched by probe, the maximum log ratio in absolute value inside the limits
of the feature is used. If there is no copy number in that region, the value of the probe before it is used.
Ali HR et al. Genome-driven integrated classification of breast cancer validated in over 7,500 samples. Genome Biology 2014; 15:431. Curtis et al. The genomic and transcriptomic architecture of 2,000 breast tumours reveals novel subgroups. Nature 2012; 486:346-352.
normalizeFeatures
, iC10
require(iC10TrainingData)
data(train.CN)
data(train.Exp)
features <- matchFeatures(Exp=train.Exp,Exp.by.feat="probe", ref="hg18")
str(features)
Run the code above in your browser using DataLab