Description Usage Arguments Value Examples
View source: R/initiation_points_methods.R
Convert BAM files into BED files containing the reads overlaping the specified annotations.
1 2 | bam_to_reads(bamfile, annotations, paired_end = TRUE, as_fragments = TRUE,
outfile = NULL, flanking_region = 0)
|
bamfile |
a character vector indicating the BAM file name. Note: The bamfile must be sorted by coordinates. |
annotations |
an object of type |
paired_end |
logical indicating whether the |
as_fragments |
logical indicating if paired-end data must be paired and merged to form fragments. |
outfile |
a character vector indicating the output file name. If not provided, the result will be internalized in R. |
flanking_region |
Number of bases before and after the gene ORF should be included. |
An object of type data.table
with 9 columns.
chromosome | Read chromosome. |
start | Read starting position. |
end | Read ending position. |
name | Query template name . |
score | Mapping quality. |
ChromosomeNext | Gene strand. |
startNext | Position of the mate/next read. |
tlen | observed read length. |
flag | bitwise flag. |
1 2 3 | bamfile <- system.file("extdata", "wt_rep1.bam", package = "yCrypticRNAs")
data(annotations)
bam_to_reads(bamfile, annotations)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.