View source: R/RunMutationalPatterns.R
RunMutationalPatterns | R Documentation |
WARNING: MutationalPatterns can only do exposure attribution using SBS96 spectra catalog and signature catalog!
RunMutationalPatterns( input.catalog, out.dir, CPU.cores = NULL, K.exact = NULL, K.range = NULL, nrun.est.K = 10, nrun.extract = 200, 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
MutationalPatterns. 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 |
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. |
test.only |
If TRUE, only analyze the first 10 columns
read in from |
overwrite |
If TRUE, overwrite existing output. Default: FALSE |
Creates several
files in out.dir
. These are:
TODO(Steve): list the files
TODO(Wuyang)
NOTE: The seed
is hard-coded in
MutationalPatterns as 123456.
pConstant
is harded-coded as 1e-04.
A list contains:
$signature extracted signatures,
$exposure inferred exposures,
of MutationalPatterns
, invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.