readWidths {ORFik} | R Documentation |
Input a ribo-seq object and get width of reads, this is to avoid confusion between width, qwidth and meta column containing original read width.
readWidths(reads)
reads |
a GRanges or GAlignment object. |
If input is p-shifted and GRanges, the "$score" or "$size" colum" must exist, and contain the original read widths. ORFik P-shifting creates a $size column, other softwares like shoelaces creates a score column
an integer vector of widths