Learn R Programming

RiboProfiling (version 1.0.0)

readsToReadStart: Transforms the reads in GAlignments to Read Start Positions in GRanges

Description

Transforms the reads in GAlignments to Read Start Positions in GRanges

Usage

readsToReadStart(aln)

Arguments

aln
A GAlignments object of the BAM mapping file.

Value

A GRanges object containing the read start genomic positions. For the reverse strand the read position on the genome is the end of the read

Examples

Run this code
#read the BAM file into a GAlignments object using
#GenomicAlignments::readGAlignments
#the GAlignments object should be similar to ctrlGAlignments object
data(ctrlGAlignments)
aln <- ctrlGAlignments
#transform the GAlignments object into a GRanges object (faster processing)
alnGRanges <- readsToReadStart(aln)

Run the code above in your browser using DataLab