
Count trailing occurrences of a character in a string
Source:R/ninetails_misc_helper_functions.R
count_trailing_chars.RdCounts how many times a specific character appears consecutively at the end of a string, working backwards from the last character. Used internally by the cDNA pipeline for poly(A)/poly(T) tail length estimation from basecalled sequences.
See also
detect_orientation_single where trailing character counts
are used for read orientation classification