View source: R/scAPAtrap_funlib.R
findTailsByPeaks | R Documentation |
Find the precise positions with polyA tails within d nt of peak ranges, given a peaksfile recording peak ranges. This function narrows the search range of tails to peak ranges to speed up tail searching, which is useful for large BAM file.
findTailsByPeaks(bamfile, peaksfile, d = 200, tailsfile = NULL, ...)
bamfile |
A BAM file which needs the index file (.bai). |
peaksfile |
The path of the peaks.saf file generated by |
d |
Add a 5' and 3' margin of d nt to each peak to search tails. Default is 200. |
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:
findTailsByPeaks(bamfile, peaksfile, d=500)
findTailsByPeaks(bamfile, peaksfile, d=500, tailsfile='output.tails')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.