sequenza
in a standardized pipeline.sequenza.extract(file, gz = TRUE, window = 1e6, overlap = 1, gamma = 80,
kmin = 10, mufreq.treshold = 0.10, min.reads = 40,
max.mut.types = 1, min.type.freq = 0.9) sequenza.fit(sequenza.extract, female = TRUE, segment.filter = 1e7,
XY = c(X = "X", Y = "Y"), cellularity = seq(0.1,1,0.01),
ploidy = seq(1, 7, 0.1), ratio.priority = FALSE,
priors.table = data.frame(CN = 2, value = 2),
chromosome.list = 1:24, mc.cores = getOption("mc.cores", 2L))
sequenza.results(sequenza.extract, sequenza.fit = NULL, sample.id, out.dir = './',
cellularity = NULL, ploidy = NULL, female = TRUE, CNt.max = 20,
ratio.priority = FALSE, XY = c(X = "X", Y = "Y"),
chromosome.list = 1:24)
aspcf
from the copynumber
package.sequenza.extract
function.sequenza.fit
function.CN
and value
, containing the copy numbers and the corresponding weights. To every copy number is assigned the value 1 as default, so every values different then 1 will change the corresponding weight.parallel
package.sequenza.extract
utilizes a range of functions from the sequenza package to read the raw data, normalize the depth.ratio for GC-content bias, perform allele-specific segmentation, filter for noisy mutations and binning of the raw data for plotting. The computed objects are returned as a single list object. This object can be given to sequenza.fit
, which uses baf.model.fit
to calculate the log-likelihood for all pairs of the ploidy and cellularity parameters.
The function sequenza.fit
would save a number of object on a desired directory (default is the working directory).
The object are the list of segments with resulting copy numbers and major and minor alleles; the candidate mutation list with variant allele frequency, and copy number and number of mutated allele, in relation of the clonal population (for sub-clonal population it needs to be processed with furthers methods); A plot of all the chromosomes in one image, representing the major and minor alleles and the absolute copy number changes (genome_view); multiple plots with one chromosome per image, representing copy-number, B-allele frequency and mutation in parallel (chromosome_view); results of the model fitting (CP_contours and confints); and a summary of the copy number state of the sample (CN_bars).genome.view
, baf.bayes
, cp.plot
, get.ci
.data.file <- system.file("data", "abf.data.abfreq.txt.gz",
package = "sequenza")
test <- sequenza.extract(data.file)
CP <- sequenza.fit(test, mc.cores = 4)
Run the code above in your browser using DataLab