View source: R/SignatureAnalyzerInteraction.R
RunSignatureAnalyzerOnFile | R Documentation |
Normally, please call SignatureAnalyzerOneRun
instead of this function.
RunSignatureAnalyzerOnFile( input.catalog, out.dir, input.exposures = NULL, maxK = 30, tol = 1e-07, test.only = FALSE, delete.tmp.files = TRUE, overwrite = FALSE )
input.catalog |
File containing input catalog. Columns are samples (tumors), rows are signatures. SignatureAnalyzer does not care about the row names (I think) TODO(Steve): check this. |
out.dir |
Directory that will be created for the output;
abort if it already exits. Log files will be in
|
input.exposures |
A file with the synthetic exposures used to generate
|
maxK |
The maximum number of signatures to consider extracting. |
tol |
Controls when SignatureAnalyzer will terminate
its search; |
test.only |
If TRUE, only analyze the first 10 columns
read in from |
delete.tmp.files |
If TRUE delete the many temporary files generated by SignatureAnalyzer. |
overwrite |
If TRUE, overwrite existing output |
Creates several files in out.dir
:
sa.output.sigs.csv
Normalized signatures (no all-0 signatures,
column sums all 0)
sa.output.raw.exp.csv
Raw exposures (attributions)
sa.output.exp.csv
Same as sa.output.raw.exp.csv
sa.output.other.data.csv
, contains a summary of important
information, including the number of signatures extracted.
input.syn.exp.csv
Optional, a copy of input.exposures
,
if it was provided.
A list with the following elements:
signatures.W
The raw signature matrix, *including*
columns of all zeros.
exposures.H
The raw exposure matrix, *excluding*
rows of all zeros. The matrix
product of the non-zero columns of signatures.w
and exposures.H
approximates the input spectrum
matrix.
likelihood
The likelihood as returned by
SignatureAnalyzer.
evidence
-1 * the posterior probability
as returned by SignatureAnalyzer.
relevance
One for each column of the signatures.W
,
as returned by SignatureAnalyzer.
error
A measure of reconstruction error (?) as
returned by SignatureAnalyzer
normalized.sigs
The non-0 columns of signatures.W
normalized so that each column sum is 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.