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

Add two new GroupReadsByUmi task options #388

Merged
merged 1 commit into from
Mar 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tasks/src/main/scala/dagr/tasks/fgbio/GroupReadsByUmi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class GroupReadsByUmi(val in: PathToBam,
val minMapQ: Option[Int] = None,
val strategy: AssignmentStrategy = AssignmentStrategy.Adjacency,
val edits: Option[Int] = None,
val minUmiLength: Option[Int] = None,
val allowInterContig: Boolean = false,
tmpDir: Option[DirPath] = None) extends FgBioTask(tmpDir=tmpDir) with Pipe[SamOrBam, SamOrBam] {

/** Implement this to add the tool-specific arguments */
Expand All @@ -58,6 +60,8 @@ class GroupReadsByUmi(val in: PathToBam,
minMapQ.foreach(m => buffer.append("-m", m))
buffer.append("-s", strategy.toString.toLowerCase)
edits.foreach(e => buffer.append("-e", e))
minUmiLength.foreach(m => buffer.append("-l", m))
if (allowInterContig) buffer.append("-x")
tmpDir.foreach(d => buffer.append(s"--tmp-dir=${d}"))
}
}