View source: R/RunSomaticSignatures.R
RunSomaticSignatures | R Documentation |
Run SomaticSignatures.NMF extraction and attribution on a spectra catalog file
RunSomaticSignatures( input.catalog, out.dir, CPU.cores = NULL, seedNumber = 1, K.exact = NULL, K.range = NULL, nrun.est.K = 30, nrun.extract = 1, pConstant = NULL, save.diag = FALSE, test.only = FALSE, overwrite = FALSE )
input.catalog |
File containing input spectra catalog. Columns are samples (tumors), rows are mutation types. |
out.dir |
Directory that will be created for the output;
abort if it already exits. Log files will be in
|
CPU.cores |
Number of CPUs to use in running
SomaticSignatures.NMF. For a server, 30 cores would be a good
choice; while for a PC, you may only choose 2-4 cores.
By default (CPU.cores = NULL), the CPU.cores would be equal
to |
seedNumber |
Specify the pseudo-random seed number used to run SomaticSignatures. Setting seed can make the attribution of SomaticSignatures repeatable. Default: 1. |
K.exact, K.range |
WARNING: You must specify only one of Default: NULL |
nrun.est.K |
Number of NMF runs for each possible number of signature. This is used in the step to estimate the most plausible number of signatures in input spectra catalog. |
nrun.extract |
number of NMF runs for extracting signatures and inferring exposures. |
pConstant |
A small positive value (a.k.a. pseudocount)
to add to every entry in the |
save.diag |
Save object of class
Set to |
test.only |
If TRUE, only analyze the first 10 columns
read in from |
overwrite |
If TRUE, overwrite existing output. Default: FALSE |
SomaticSignatures.NMF used approach in Hutchins et al. (2008)
to estimate K
: it selects the first inflection point of
residual sum of squares (RSS) function by finding the smallest K
where the second derivate of RSS at its neighbouring K
s have
opposite signs.
This requires calculation of second derivative of residual sum
of squares (RSS) at >2 integers, and thus requires at least 3 K
s
to be assessed.
A list contains:
$signature extracted signatures,
$exposure inferred exposures,
of SomaticSignatures.NMF
, invisibly.
http://dx.doi.org/10.1093/bioinformatics/btn526
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.