Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Support clipping-mode and upgrade-clipipng in ClipBam.
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jan 9, 2018
1 parent d67a78d commit 91933f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/src/main/scala/dagr/tasks/fgbio/ClipBam.scala
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,28 @@ import scala.collection.mutable.ListBuffer
class ClipBam(val input: PathToBam,
val output: PathToBam,
val ref: PathToFasta,
@deprecated("Use clipping-mode instead.", since="0.2.1")
val softClip: Option[Boolean] = None,
val clippingMode: Option[String] = None,
val autoClipAttributes: Option[Boolean] = None,
val upgradeClipping: Option[Boolean] = None,
val readOneFivePrime: Option[Int] = None,
val readOneThreePrime: Option[Int] = None,
val readTwoFivePrime: Option[Int] = None,
val readTwoThreePrime: Option[Int] = None,
val clipOverlappingReads: Option[Boolean] = None
) extends FgBioTask {

require(softClip.isEmpty || clippingMode.isEmpty, "Both softClip and clippingMode cannot both be used.")

override protected def addFgBioArgs(buffer: ListBuffer[Any]): Unit = {
buffer.append("-i", input)
buffer.append("-o", output)
buffer.append("-r", ref)
softClip.foreach (s => buffer.append("-s", s))
clippingMode.foreach (c => buffer.append("-c", c))
autoClipAttributes.foreach(a => buffer.append("-a", a))
upgradeClipping.foreach (u => buffer.append("--upgrade-clipping", u))
readOneFivePrime.foreach (b => buffer.append("--read-one-five-prime", b))
readOneThreePrime.foreach (c => buffer.append("--read-one-three-prime", c))
readTwoFivePrime.foreach (d => buffer.append("--read-two-five-prime", d))
Expand Down

0 comments on commit 91933f5

Please sign in to comment.