Description Usage Arguments Value Author(s)
Function to calculate the 'which' parameter when loading a BAM file through Rsamtools. Given a chromosome and position, will calculate the appropriate access of the subset of data from the file, without loading unnecessary data.
1 |
chr |
String representing a chromosome (e.g. "X", "12") (required). |
position |
Integer representing the position in question, The function will return all the reads which overlap this position. |
offsets |
Positive integer dictating interval to the right of the position in which to access all reads from the BAM file (required). |
Produces a range that can be used to create a param object to open a subset of a BAM file in a separate function.
L. Christine Schreiner
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.