All functions |
|
|---|---|
Morphs phased SNPs from WGS input into haplotype blocks |
|
Morphs phased SNPs from SNP6 input into haplotype blocks |
|
Plot allele ratios from raw segmented data |
|
Run the Battenberg pipeline |
|
Calculate psi based on a reference segment and its associated logr |
|
Calculate rho and psi values from a refit suggestion |
|
Fast solution calculation (vectorized and optimized) |
|
Fit ChrX subclonal copy number (male only) |
|
Fit subclonal copy number |
|
Generates haplotype blocks, MSAI results, and plots from phasing information contained in multisample Battenberg runs |
|
Transform cel files into BAF and LogR |
|
Obtain BAF and LogR from the Cell line (tumour only) allele counts |
|
Reconstruct normal-pair allele count files for cell lines |
|
Check impute info file consistency |
|
Create refit suggestions for a fit copy number profile |
|
Combines all separate BAF files per chromosome into a single file |
|
Concatenate the impute output generated for each of the regions. |
|
Converts impute input to a beagle input |
|
Plot relative coverage of tumour and normal |
|
Create smart search order - best regions first |
|
This function is an alternative procedure for finding the optimum (psi, rho) pair. This function first finds all the find all the global optima, and then finds the centroid of this set of globla optima. Then we find the global optimum which is nearest to the centroid. (When the set of global optima is convex, we expect the selected optimum to be at the centroid.) |
|
Fit copy number |
|
Correct the LogR estimates for GC content |
|
Function to correct LogR for waivyness that correlates with GC content |
|
Function to correct LogR for waivyness that correlates with GC content |
|
Prepares data for impute |
|
Prepare data for impute |
|
Prepare data for impute |
|
Generate plots |
|
Obtain BAF and LogR from the Germline allele counts |
|
Reconstruct normal-pair allele count files for Germlines |
|
Returns the chromosome names that are supported |
|
Obtain allele counts for 1000 Genomes loci through external program alleleCount |
|
Obtain BAF and LogR from the allele counts |
|
Generates phased haplotypes from multisample Battenberg runs |
|
Infer the gender using the birdseed report file |
|
Combine imputation results with external haplotype blocks |
|
Fast local minimum check (optimized version of original 7x7) |
|
Function to make additional figures |
|
Mask segments that have a too high CN state |
|
Read in the imputeinfofile. |
|
Plot haplotyped SNPs |
|
Prepare SNP6 data for haplotype construction |
|
Prepare WGS data for haplotype construction |
|
Prepare WGS data of cell line for haplotype construction |
|
Prepare WGS data of germline for haplotype construction |
|
Parser for allele frequencies data |
|
Parser for BAF data |
|
Parser for BAFsegmented data |
|
Parser for beagle5 output data |
|
Parser for GC content reference data |
|
Parser for impute input data |
|
Parser for imputed genotype data |
|
Parser for logR data |
|
Parser for replication timing reference data |
|
Generic reading function using the readr R package, tailored for reading in genomic data |
|
Command to run beagle5 |
|
Run impute on the specified inputfile |
|
A modified ASCAT main function to fit Battenberg |
|
Key optimizations: 1. Early termination after first good solution (like original) 2. Vectorized distance calculations 3. Optimized constraint checking 4. Smart search ordering (best regions first) 5. Reduced memory allocations |
|
ASCAT like function to obtain a clonal copy number profile |
|
Construct haplotypes for a chromosome |
|
Construct haplotypes for a chromosome - germline WGS version |
|
Segment BAF, with the possible inclusion of structural variant breakpoints |
|
Segment the haplotyped and phased data using fastPCF. This is the legacy segmentation function as it was used in the original Battenberg versions |
|
Segment BAF, with the possible inclusion of structural variant breakpoints |
|
Segment BAF with the inclusion of structural variant breakpoints - This function is now deprecated, call segment.baf.phased instead |
|
Split a single vcf into separate vcfs for each chromosome |
|
Plot Battenberg copy number solutions for a segment |
|
Chromosome notation standardisation (removing 'chr' string from chromosome names - mainly an issue in hg38 BAMs) |
|
Chromosome notation standardisation (removing 'chr' string from chromosome names - mainly an issue in hg38 BAMs) |
|
Calculate refit values from a refit suggestion |
|
Plot total copy number split per chromosome |
|
Writes the imputation and copy number phased haplotypes to a vcf |
|
Writes output of beagle as output from impute (interface bealge/impute for Battenberg) |
|
Writes input file for beagle5 |
|