powered by
Counts ref and alt reads for a set of mutations in a bam file
get_mutations_read_counts(mutations, bam, tag = "", min_base_quality = 20, max_depth = 1e+05, min_mapq = 30)
A data frame with the reporter mutations. Should have the columns CHROM, POS, REF, ALT.
path to bam file
the RG tag if the bam has more than one sample
minimum base quality for a read to be counted
maximum depth above which sampling will happen
the minimum mapping quality for a read to be counted
a named list contains: ref, vector of read counts of the reference alleles, and alt, vector of read counts of the alternative allele
Quantifies the reference and variant alleles for the input mutations in the input bam file. Useful for forced calling mutations.
get_mutations_read_names test_ctDNA get_mutations_fragment_size
get_mutations_read_names
test_ctDNA
get_mutations_fragment_size
# NOT RUN { data("mutations", package = "ctDNAtools") bamT1 <- system.file("extdata", "T1.bam", package = "ctDNAtools") get_mutations_read_counts(mutations = mutations[1:3, ], bam = bamT1) # }
Run the code above in your browser using DataLab