Description Usage Arguments Value Author(s) See Also Examples
View source: R/segmentationHclust.R
A minimal segmentation function useful when segmentation was performed by
third-pary tools. When a CollapsedVCF
with germline SNPs is provided,
it will cluster segments using hclust
. Otherwise it will use the
segmentation as provided.
This function is called via the
fun.segmentation
argument of runAbsoluteCN
. The
arguments are passed via args.segmentation
.
1 2 3 4 5 6 7 8 9 10 |
seg |
If segmentation was provided by the user, this data structure will contain this segmentation. Useful for minimal segmentation functions. Otherwise PureCN will re-segment the data. This segmentation function ignores this user provided segmentation. |
vcf |
Optional |
tumor.id.in.vcf |
Id of tumor in case multiple samples are stored in VCF. |
normal.id.in.vcf |
Id of normal in in VCF. Currently not used. |
prune.hclust.h |
Height in the |
prune.hclust.method |
Cluster method used in the |
chr.hash |
Mapping of non-numerical chromsome names to numerical names
(e.g. chr1 to 1, chr2 to 2, etc.). If |
... |
Currently unused arguments provided to other segmentation functions. |
data.frame
containing the segmentation.
Markus Riester
1 2 3 4 5 6 7 8 9 10 11 | vcf.file <- system.file("extdata", "example.vcf.gz",
package="PureCN")
interval.file <- system.file("extdata", "example_intervals_tiny.txt",
package="PureCN")
seg.file <- system.file('extdata', 'example_seg.txt',
package = 'PureCN')
res <- runAbsoluteCN(seg.file=seg.file, fun.segmentation=segmentationHclust,
max.ploidy = 4, vcf.file=vcf.file,
test.purity = seq(0.3, 0.7, by = 0.05), max.candidate.solutions=1,
genome='hg19', interval.file=interval.file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.