View source: R/CreateSynSBS1SB5Correlated.R
CreateSBS1SBS5CorrelatedSyntheticDataOneDataset | R Documentation |
This function will use SigProfiler-SBS96 mutational signatures to generate imaginary tumor spectra with mutation burdens only from SBS1 and SBS5, and mutation burdens of both signatures are highly correlated.
CreateSBS1SBS5CorrelatedSyntheticDataOneDataset( dir.name = "./S.0.5.Rsq.0.3", dataset.name = NULL, overwrite = FALSE, seed = 1, parameter.df = SynSigGen::SBS1SBS5parameter["S.0.5.Rsq.0.3", ], add.info = TRUE, verbose = FALSE )
dir.name |
Folder to place the generated tumor spectra and other output files. Default: ./S.0.5.Rsq.0.3 |
dataset.name |
The dataset.name encodes the parameters for
the synthetic data, but this is just a convention.
If NULL, it will be changed to the last part of the |
overwrite |
Whether to overwrite (Default: FALSE) |
seed |
The seed number used to initialize pseudo-random number generator (RNG). This makes the generation of the correlated datasets repeatable. (Default: 1) |
parameter.df |
a named 1*14 data.frame containing the following items:
|
add.info |
Whether to generate additional information. |
verbose |
If Warning |
If you want to customize Pearson R^2 of the dataset, you need to change the standard deviations of two signatures. i.e., main.stdev.log and correlated.stdev.log.
This function will generate files listed below:
ground.truth.syn.catalog.csv: Generated tumor spectra in ICAMS SBS96 CSV format.
ground.truth.syn.exposures.csv: Mutation burdens of SBS1 and SBS5 in generated tumor spectra in ICAMS CSV format.
ground.truth.syn.sigs.csv: Ground-truth SBS1 and SBS5 signatures in ICAMS SBS96 CSV format.
parameters.txt: Parameters used to generate the exposures and tumor spectra.
scatterplot.pdf: scatterplot illustrating correlation of exposures of two signatures in generated spectra
seedInUse.txt, RNGInUse.txt: seed and Random Number Generator used in generation. (For better reproducibility)
sessionInfo.txt: information related to R versions, platforms, loaded or imported packages, etc. (For better reproducibility)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.