get_readgr | R Documentation |
Read and filter a bam file of RPFs
get_readgr(
ribobam,
anno,
offsets_df = NULL,
startstop = FALSE,
strip_seqnames = TRUE
)
ribobam |
GRanges; A bam file with RPFs |
anno |
An annotation object |
offsets_df |
|
startstop |
option to select only reads that overlapt he start/stop for offset determination,Defaults to FALSE |
strip_seqnames |
whether the function should remove all text after the
first '|', useful if aligning to gencode fastas Defaults to |
This function reads in a bam file containing ribosomal footprints. It uses only reads without splice sites and reads which align to the positive strand, as it's designed to work on transcriptomic alignments.
This function returns a granges object with the read names in the names slot and a metadata column denoting readlength.
Dermot Harnett, dermot.p.harnett@gmail.com
get_cds_reads
, get_readlens
data(chr22_anno)
testbam <- system.file("extdata", "chr22.bam", package = "Ribostan", mustWork = TRUE)
rpfs <- get_readgr(testbam, chr22_anno)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.