View source: R/scAPAtrap_funlib.R
findTails | R Documentation |
Find the precise positions with polyA tails genome-wide or on one given chromosome. Given chr, this function will traverse each chromosome and find the site through the A-rich at the end.
findTails(bamfile, chr = NULL, len = NULL, tailsfile = NULL, ...)
bamfile |
A BAM file which needs the index file (.bai). |
chr |
NULL or a character string. If NULL, search whole genome. Otherwise search tails on one chr. |
len |
NULL or the chromosome length of the given chr. |
tailsfile |
if not NULL then output to tailsfile, and return the tailsfile name. |
... |
Arguments passed to other methods and/or advanced arguments. Advanced arguments:
|
A data frame recording tail positions with chr/strand/coord/count; or tailsfile name (if tailsfile not NULL)
## Not run:
findTails(bamfile, chr=1, len=1000000001)
findTails(bamfile, tailsfile='output/output.tails')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.