View source: R/processMultipleSamples.R
processMultipleSamples | R Documentation |
This function performs normalization and segmentation when multiple for the same patient are available.
processMultipleSamples(
tumor.coverage.files,
sampleids,
normalDB,
num.eigen = 20,
genome,
plot.cnv = TRUE,
w = NULL,
min.interval.weight = 1/3,
max.segments = NULL,
chr.hash = NULL,
centromeres = NULL,
...
)
tumor.coverage.files |
Coverage data for tumor samples. |
sampleids |
Sample ids, used in output files. |
normalDB |
Database of normal samples, created with
|
num.eigen |
Number of eigen vectors used. |
genome |
Genome version, for example hg19. Needed to get centromere positions. |
plot.cnv |
Segmentation plots. |
w |
Weight of samples. Can be used to downweight poor quality samples.
If |
min.interval.weight |
Can be used to ignore intervals with low weights. |
max.segments |
If not |
chr.hash |
Mapping of non-numerical chromsome names to numerical names
(e.g. chr1 to 1, chr2 to 2, etc.). If |
centromeres |
A |
... |
Arguments passed to the segmentation function. |
CURRENTLY DEFUNCT BECAUSE IT DEPENDS ON THE DEFUNCT COPYNUMBER PACKAGE. We are working on a replacement.
data.frame
containing the segmentation.
Markus Riester
Nilsen G., Liestol K., Van Loo P., Vollan H., Eide M., Rueda O., Chin S., Russell R., Baumbusch L., Caldas C., Borresen-Dale A., Lingjaerde O. (2012). "Copynumber: Efficient algorithms for single- and multi-track copy number segmentation." BMC Genomics, 13(1), 591.
runAbsoluteCN
normal1.coverage.file <- system.file("extdata", "example_normal.txt.gz",
package = "PureCN")
normal2.coverage.file <- system.file("extdata", "example_normal2.txt.gz",
package = "PureCN")
tumor1.coverage.file <- system.file("extdata", "example_tumor.txt.gz",
package = "PureCN")
tumor2.coverage.file <- system.file("extdata", "example_tumor2.txt.gz",
package = "PureCN")
normal.coverage.files <- c(normal1.coverage.file, normal2.coverage.file)
tumor.coverage.files <- c(tumor1.coverage.file, tumor2.coverage.file)
normalDB <- createNormalDatabase(normal.coverage.files)
# seg <- processMultipleSamples(tumor.coverage.files,
# sampleids = c("Sample1", "Sample2"),
# normalDB = normalDB,
# genome = "hg19")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.