Reads in GAlignments converted to either Read Start (5') or End (3') Positions
A GAlignments object of the BAM mapping file.
A character object. Either "start" (the default) or "end" for read start or read end.
A GRanges object containing either the read start or end genomic positions.
1 2 3 4 5 6 7
#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 <- readsToStartOrEnd(aln, what = "end")