Skip to content

Commit

Permalink
one more header fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Jun 1, 2015
1 parent ca4a3af commit 44de834
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,12 @@ class AlignmentRecordRDDFunctions(rdd: RDD[AlignmentRecord])

// attach header to output format
asSam match {
case true => ADAMSAMOutputFormat.addHeader(header)
case false => ADAMBAMOutputFormat.addHeader(header)
case true =>
ADAMSAMOutputFormat.clearHeader()
ADAMSAMOutputFormat.addHeader(header)
case false =>
ADAMBAMOutputFormat.clearHeader()
ADAMBAMOutputFormat.addHeader(header)
}

// write file to disk
Expand Down

0 comments on commit 44de834

Please sign in to comment.