Skip to content

Commit

Permalink
fixed host removal for edgev3 settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-watson committed Jan 6, 2025
1 parent 3cc2d9d commit a1082a2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions modules/hostRemoval/hostRemoval.nf
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,17 @@ process hostRemoval {
def prefix = "-prefix ${ref.name.take(ref.name.lastIndexOf('.'))}.clean "
def similarity = settings["similarity"] != null ? "-similarity ${settings["similarity"]} " : ""
def minScore = settings["bwaMemOptions"] != null ? "${settings["bwaMemOptions"]} " : "-T 50 "
def ontFlag = settings["fastqSource"].equalsIgnoreCase("nanopore") ? "-x ont2d " : ""
ontFlag = settings["fastqSource"].equalsIgnoreCase("pacbio") ? "-x pacbio " : ontFlag
ontFlag = ""
if(settings["fastqSource"] != null) {
if(settings["fastqSource"].equalsIgnoreCase("nanopore")) {
ontFlag = "-x ont2d "
}
else if(settings["fastqSource"].equalsIgnoreCase("pacbio")) {
ontFlag = "-x pacbio "
}
}
minScore = ontFlag != "" ? "-T ${settings["minLen"]} " : minScore
def bwaMemOptions = "-bwaMemOptions \"${ontFlag} ${minScore}\" "
bwaMemOptions = "-bwaMemOptions \"${ontFlag} ${minScore}\" "
def cpu = settings["cpus"] != null ? "-cpu ${settings["cpus"]} " : ""

"""
Expand Down

0 comments on commit a1082a2

Please sign in to comment.