Extract the names of the reads in a bam file that support the variant allele of a single mutation
get_mutation_read_names(bam, chr, pos, ref, alt, tag = "",
min_base_quality = 20, min_mapq = 30)
path to bam file.
Chromosome name for the mutation.
Chromosome position for the mutation.
The reference allele of the mutation.
The alternative allele of the mutation.
the RG tag if the bam has more than one sample.
integer specifying the minimum base quality for reads to be included.
integer specifying the minimum mapping quality for reads to be included.
A character vector having the read names