add read counts to MAF file from bam files.
addReadCounts(maf, bam_df, BaseQuality = 10, MapQuality = 10,
ref_genome = NULL, skipSamples = NULL, samples = NULL, prefix = NULL,
add = TRUE)
two column dataframe. First column must contain Tumor_Sample_Barcode and second column with path to corresponding bam file.
minimum base quality.
minimum mapping quality.
path to reference genome. required.
Tumor_Sample_Barcodes to skip from bam_df.
add read counts to only these samples.
Prefix to add or remove from contig names in MAF file.
If prefix is used, default is to add prefix to contig names in MAF file. If false prefix will be removed from contig names.
maf file with "t_depth", "t_ref_count", "t_alt_count" and "t_vaf" columns added.
This is a wrapper script which runs bam-readcount programme via R system()
command to get readcounts.
Assumes bam-readcount is installed and under path.
Make sure chromosome names in 'Chromosome' field of maf matches to chromosome names in reference fasta file.
Currently only supports for SNPs. Indels will be populated with NA.