Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Feb 5, 2025
1 parent 2813445 commit bf2dba3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/scala/com/fulcrumgenomics/bam/Bams.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ private[bam] case class AlignmentInfo(refIndex: Int, start: Int, positiveStrand:
/** Returns a formatted alignment as per the SA tag: `(rname ,pos ,strand ,CIGAR ,mapQ ,NM ;)+` */
def toSA(header: SAMFileHeader): String = {
val strand = if (positiveStrand) '+' else '-'
val refName = header.getSequence(refIndex).getSequenceName
val cigar = this.cigar.getOrElse("*")
f"${refName},${start},${strand},${cigar},${mapq},${nm}"
f"${refName(header)},${start},${strand},${cigar},${mapq},${nm}"
}
}

Expand Down

0 comments on commit bf2dba3

Please sign in to comment.