Description Usage Arguments Details Value Author(s) See Also Examples
Main constructor for a SigCheckObject
. Also establishes
baseline survival analysis and/or classification performance.
1 2 3 4 5 6 7 |
expressionSet |
An
|
classes |
Specifies which label is to be used to determine the prognostic categories
(must be one of |
survival |
Specifies which label is to be used to determine survival times.
(must be one of |
signature |
A vector of feature labels specifying which features comprise the signature to
be checked. These feature labels should match values as specified in the
|
annotation |
Character string specifying which |
validationSamples |
Optional specification, as a vector of sample indices, of what samples in the
|
scoreMethod |
specification of how the samples should be split into groups for survival analysis. If a character sting, one of the following values:
if the |
threshold |
specifies the threshold used for separating the validation samples into classed
based on the score derived using |
classifierMethod |
if the |
modeVal |
specifies which of the two category values (one of the values implied
by the |
survivalLabel |
String to use in the Y-axis of any Kaplan-Meier plots generated, this indicates what aspect of survival is being predicted, such as time to recurrence or death. |
timeLabel |
String to use in the X-axis of an Kaplan-Meier plots generated, this indicates the units of time, such as days or months to outcome event. |
plotTrainingKM |
if the |
plotValidationKM |
if the |
impute |
if |
This function constructs a new SigCheckObject
and carried out
a baseline analysis,
which will vary depending on which parameters are specified.
If the survival
parameter is specified, a survival analysis
is carried out.
If the validationSamples
parameter is specified, this will be done
separately on the validation samples and the remaining
(training/discovery) samples.
The main result is a p-value indicating the confidence that the samples are
separable into groups with distinct survival outcomes. This value is obtained
using the survdiff
function in the survival
package
(and applying pchisq
to the
$chisq
component of the result). The samples are separated into groups
using the scoreMethod
and threshold
parameters
(and possibly the classifierMethod
parameter).
If the survival
parameter is not specified, then the scoreMethod
parameter must be equal to "classifier"
, and a pure classification
analysis is completed (as was done in SigCheck 1.0
).
If the validationSamples
parameter is specified, the remaining samples
are used as a training set to construct a classifier that is used
to classify the validation samples. If validationSamples
is not
specified, leave-one-out cross-validation is used whereby a separate
classifier is trained to predict each sample using all of the others.
If the baseline analysis can be completed,
a SigCheckObject
is returned.
Rory Stark with Justin Norden
sigCheckAll
, sigCheckRandom
,
sigCheckKnown
, sigCheckPermuted
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | library(breastCancerNKI)
data(nki)
nki <- nki[,!is.na(nki$e.dmfs)]
data(knownSignatures)
## survival analysis
check <- sigCheck(nki, classes="e.dmfs", survival="t.dmfs",
signature=knownSignatures$cancer$VANTVEER,
annotation="HUGO.gene.symbol")
check@survivalPval
check <- sigCheck(check, classes="e.dmfs", survival="t.dmfs",
signature=knownSignatures$cancer$VANTVEER,
annotation="HUGO.gene.symbol",
scoreMethod="High", threshold=.33)
check@survivalPval
## survival analysis with separate training and validation using SVM
check <- sigCheck(nki, classes="e.dmfs", survival="t.dmfs",
signature=knownSignatures$cancer$VANTVEER,
annotation="HUGO.gene.symbol",
validationSamples=150:319,
scoreMethod="classifier")
check
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.