/** * Once name/sequence/qualities have been parsed for a * paired-end read, set all the other key fields of the Read * structs. */ void PatternSourcePerThread::finalizePair(Read& ra, Read& rb) { ra.mate = 1; ra.constructRevComps(); ra.constructReverses(); ra.fixMateName(1); ra.seed = genRandSeed(ra.patFw, ra.qual, ra.name, seed_); rb.mate = 2; rb.constructRevComps(); rb.constructReverses(); rb.fixMateName(2); rb.seed = genRandSeed(rb.patFw, rb.qual, rb.name, seed_); }
/** * Once name/sequence/qualities have been parsed for an * unpaired read, set all the other key fields of the Read * struct. */ void PatternSourcePerThread::finalize(Read& ra) { ra.mate = 0; ra.constructRevComps(); ra.constructReverses(); ra.seed = genRandSeed(ra.patFw, ra.qual, ra.name, seed_); }