Skip to content
Prev 5381 / 21312 Next

[Bioc-devel] GenomicAlignments: using asMates=TRUE and yieldSize with paired-end BAM files

On 03/19/14 10:24, Michael Love wrote:
Sorry, our emails keep criss-crossing.

Because the mate-pairing is now done in C yieldSize is no longer a 
constraint.

When yieldSize is given, say 100, then 100 mates are returned. The algo 
moves through the file until 100 records are successfully paired. These 
100 are yielded to the user and the code picks up where it left off. A 
related situation is the 'which' in a param. In this case you want the 
mates in a particular range. The algo moves through the range and pairs 
what it can. If it's left with unmated records it goes outside the range 
looking for them. readGAlignmentsList() will return all records in this 
range, mated or not. The metadata column of 'mate_status' indicates the 
different groupings.

Valerie