count_reads | R Documentation |
This function finds the number of reads falling into each bin from a specified set. The aligned reads are read directly from .bam files matching a pattern.
count_reads(patterns, binlist, minq, binwidth, strand_diff = FALSE)
patterns |
a character vector indicating patterns which will be used to look ofr .bam files. |
binlist |
a named list of numeric vectors of breakpoints for the bins that will be used to tally the reads. The names of the list elements should be chromosome names matching the names used in the .bam file, whereas the numeric vectors should start at position 0 and identify the limits of the bins. |
minq |
an integer or numeric of length 1. The minimum mapping quality for a read to be used for binning. |
binwidth |
a integer or numeric of length 1. The width of the bins used. This value is not dynamically obtained from the |
strand_diff |
a logical of length 1 ( |
a data.frame
with the first three columns giving the position
of the bin and the remaining columns corresponding to the
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.