Description Usage Arguments Details Author(s) See Also Examples
This function is designed to faciliate users to test patternCNV, with generated WIG and/or pattern files.
1 2 3 | makeSimulation(ini.file = "simu.ini",
sample.info.file = "sample_info.txt",
with.pattern = FALSE)
|
ini.file |
name of patternCNV configuration file, which is usually loaded by |
sample.info.file |
name of sample information file which records sample name/type and path to sample WIG file |
with.pattern |
logical, whether trained pattern files need to be included in configuration file |
With succesful run of this function, the user should be able to automatically generate a configuration file and a sample information file under current working directory. The with.pattern
option instructs whether generated configuration file includes already trained pattern files for simulation study.
Chen Wang
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #=============================================================
#=== load a simulation example without generated pattern files
#=============================================================
config.filename <- "sim1.ini"
makeSimulation(config.filename)
sim.session <- createSession(config.filename)
#=== print session information
summary(sim.session)
#==========================================================
#=== load a simulation example with generated pattern files
#==========================================================
config.filename <- "sim2.ini"
makeSimulation(config.filename,with.pattern=TRUE)
sim.session <- createSession(config.filename)
#=== print session information
summary(sim.session)
#=== compute CNV and generate heatmap of selected genes
germline.data <- computeMultiCNV(sim.session)
plotGeneHeatmap(data.name=germline.data,
sel.gene.name=c("NAGA","ARFGAP3","CYB5R3","POLR3H","FAM109B"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.