This function performs part of the Battenberg WGS pipeline: Counting alleles, constructing BAF and logR and performing GC content correction.
prepare_wgs(
chrom_names,
tumourbam,
normalbam,
tumourname,
normalname,
g1000allelesprefix,
g1000prefix,
gccorrectprefix,
repliccorrectprefix,
min_base_qual,
min_map_qual,
allelecounter_exe,
min_normal_depth,
nthreads,
skip_allele_counting,
skip_allele_counting_normal = F
)A vector containing the names of chromosomes to be included
Full path to the tumour BAM file
Full path to the normal BAM file
Identifier to be used for tumour output files
Identifier to be used for normal output files
Prefix path to the 1000 Genomes alleles reference files
Prefix path to the 1000 Genomes SNP reference files
Prefix path to GC content reference data
Prefix path to replication timing reference data (supply NULL if no replication timing correction is to be applied)
Minimum base quality required for a read to be counted
Minimum mapping quality required for a read to be counted
Path to the allele counter executable (can be found in $PATH)
Minimum depth required in the normal for a SNP to be included
The number of paralel processes to run
Flag, set to TRUE if allele counting is already complete (files are expected in the working directory on disk)
Flag, set to TRUE from the second sample onwards for multisample case (Default: FALSE)