fixing read group name collision: before writing the read into respective stream in nway-out mode we now retrieve the original rg, not the merged/modified one
This commit is contained in:
parent
9ddbfdcb9f
commit
9f3328db53
|
|
@ -135,6 +135,11 @@ public class NWaySAMFileWriter implements SAMFileWriter {
|
|||
|
||||
public void addAlignment(SAMRecord samRecord) {
|
||||
final SAMReaderID id = toolkit.getReaderIDForRead(samRecord);
|
||||
String rg = samRecord.getStringAttribute("RG");
|
||||
if ( rg != null ) {
|
||||
String rg_orig = toolkit.getReadsDataSource().getOriginalReadGroupId(rg);
|
||||
samRecord.setAttribute("RG",rg_orig);
|
||||
}
|
||||
writerMap.get(id).addAlignment(samRecord);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue