If str starts with 'chr' that prefix is stripped away before translating the string to chromosome number. Function translates "X" to 23, "Y" to 24, and "M" or "MT" to 25. For other inputs utility::convert is used to transform the input to an unsigned short.

Returns

chromosome number

Since

New in yat 0.7

template<typename InputIterator , typename OutputIterator >

void theplu::yat::omic::dna_complement

(

InputIterator

begin,

InputIterator

end,

OutputIterator

out

)

bam_pair_analyse performs an operation on bam read pairs as defined by visitor. The function iterates over sorted input range of reads; if read is first read, it is cached for later use; if read is second read and mate is present in cache, visitor operates on pair, i.e., Visitor (mate, read) is called.