Description Usage Arguments Details Value Author(s) See Also Examples
This internal function computes copy number variation (CNV) for single sample. Not intended for users
1 2 3 | computeSingleCNV(session.name, sample.name, ref.type = "average.pattern",
episl = 1, small.delta = 1e-05, bin.size = 10,
is.verbose = TRUE)
|
session.name |
an object of |
sample.name |
a character vector of sample name defined in sample information file |
ref.type |
"average.pattern" or "basic.paired". "average.pattern" instructs function make CNV calls using trained pattern files. "basic.paired" instructs function make CNV calls using paired normal/Germline sample. |
episl |
a small value adding to coverage to avoid doing log-transform on zero |
small.delta |
a small value |
bin.size |
numeric value of exon-level bin-size |
is.verbose |
logical value indicating if the progress information is printed |
Not for users
numeric CNV log2-ratio value of single sample
Chen Wang
User should directly call computeMultiCNV
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #==========================================================
#=== load a simulation example with generated pattern files
#==========================================================
config.filename <- 'sim2.ini'
makeSimulation(config.filename,with.pattern=TRUE)
sim.session <- createSession(config.filename)
#=== compute CNV of sample "c1"
c1.cnv <- computeSingleCNV(sim.session,"c1")
#=== plot CNV versus position (Mb)
exon.startpos <- exonInfo(sim.session,attri="start")
plot(exon.startpos/1e6, c1.cnv$CNV,
xlab="position (Mb)",ylab="CNV log2ratio")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.