powered by
This function extracts the names of the reads in a bam file that support the variant and reference alleles of the input mutations
get_mutations_read_names(bam, mutations, min_base_quality = 20, tag = "", min_mapq = 30)
path to bam file
A data frame containing the mutations. Must have the columns CHROM, POS, REF, ALT.
integer specifying the minimum base quality for reads to be included.
the RG tag if the bam has more than one sample
integer specifying the minimum mapping quality for reads to be included
A list with length equal to the number of mutations. Each element is a character vector with the read names.
Returns the IDs of the read that cover the input mutations (ref and alt alleles).
get_mutations_read_counts get_mutations_fragment_size test_ctDNA
get_mutations_read_counts
get_mutations_fragment_size
test_ctDNA
# NOT RUN { data("mutations", package = "ctDNAtools") bamT1 <- system.file("extdata", "T1.bam", package = "ctDNAtools") get_mutations_read_names(bam = bamT1, mutations = mutations[1:3, ]) # }
Run the code above in your browser using DataLab