@@ -588,9 +588,6 @@ impl SamWriter {
588588 let n_alignments = projected. len ( ) ;
589589 let mut records = Vec :: with_capacity ( n_alignments) ;
590590
591- // STAR pushes ATTR_RG onto both outSAMattrOrder and outSAMattrOrderQuant
592- // when --outSAMattrRGline is set; mirror that here so transcriptome
593- // records get the per-record RG:Z:<id> tag matching the @RG header.
594591 let rg_id_owned = params. primary_rg_id ( ) ?;
595592 let rg_id = rg_id_owned. as_deref ( ) ;
596593
@@ -1534,10 +1531,6 @@ mod tests {
15341531
15351532 #[ test]
15361533 fn test_build_transcriptome_records_stamps_rg_tag ( ) {
1537- // Regression test for #32: when --outSAMattrRGline is supplied, every
1538- // transcriptome record must carry the RG:Z:<id> tag matching the @RG
1539- // header (mirroring STAR's outSAMattrOrderQuant.push_back(ATTR_RG) at
1540- // Parameters_samAttributes.cpp:201-205).
15411534 let params = Parameters :: parse_from ( vec ! [
15421535 "rustar-aligner" ,
15431536 "--readFilesIn" ,
@@ -1610,9 +1603,6 @@ mod tests {
16101603
16111604 #[ test]
16121605 fn test_build_transcriptome_records_no_rg_when_unset ( ) {
1613- // When --outSAMattrRGline is not supplied, no RG:Z: tag should be
1614- // emitted on transcriptome records (matching the existing genome-BAM
1615- // behavior gated on `rg_id.is_some()`).
16161606 let params = Parameters :: parse_from ( vec ! [ "rustar-aligner" , "--readFilesIn" , "test.fq" ] ) ;
16171607
16181608 let projected = vec ! [ Transcript {
0 commit comments