Skip to content
Snippets Groups Projects
Commit 40de3b9b authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Style changes

parent 6656e37d
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@ object MpileupToVcf extends ToolCommand {
val seqErr = 1.0 - binomial.cdf(value.forward + value.reverse)
maSeqErr match {
case Some(x) if (x < seqErr) =>
case _ => maSeqErr = Some(seqErr)
case _ => maSeqErr = Some(seqErr)
}
format += ("SEQ-ERR" -> (format("SEQ-ERR") + "," + seqErr.toString))
format += ("AFC" -> ((if (format.contains("AFC")) format("AFC") + "," else "") + value.forward))
......@@ -170,10 +170,9 @@ object MpileupToVcf extends ToolCommand {
maSeqErr match {
case Some(x) => format += ("MA-SEQ-ERR" -> x)
case _ =>
case _ =>
}
if (alt.nonEmpty) {
val ad = for (ad <- format("AD").toString.split(",")) yield ad.toInt
var left = reads - dels
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment