Skip to content

Commit

Permalink
Fix pass-QC in output FASTQ read names
Browse files Browse the repository at this point in the history
See #922
  • Loading branch information
nh13 authored Jul 24, 2023
1 parent e197ce4 commit 0b68d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/fulcrumgenomics/fastq/DemuxFastqs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ object OutputType extends FgBioEnum[OutputType] {
*/
case class ReadInfo(readNumber: Int, passQc: Boolean, internalControl: Boolean, sampleInfo: String, rest: Seq[String]) {
override def toString: String = {
val leading = f"$readNumber:${if (passQc) "Y" else "N"}:${if (internalControl) 1 else 0}:$sampleInfo"
val leading = f"$readNumber:${if (passQc) "N" else "Y"}:${if (internalControl) 1 else 0}:$sampleInfo"
if (rest.isEmpty) leading else leading + " " + rest.mkString(" ")
}
}
Expand Down

0 comments on commit 0b68d7e

Please sign in to comment.