Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-watson committed Dec 9, 2024
1 parent b11e4dc commit eddba05
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions modules/hostRemoval/hostRemoval.nf
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,8 @@ workflow HOSTREMOVAL{

cleaned1_ch = hostRemoval.out.cleaned1.collect()
cleaned2_ch = hostRemoval.out.cleaned2.collect()
print("at host branch\n")
//more than one host
if (([] + settings["host"]).size() > 1) {
print("in multihost branch\n")
print(settings["host"] + "\n")
print(settings["host"].size())
print("\n")
//merge clean paired-end reads (intersection)
collectCleanPairedReads(settings, cleaned1_ch, cleaned2_ch, hostRemoval.out.hostReads.collect())
paired = collectCleanPairedReads.out.paired
Expand All @@ -180,14 +175,12 @@ workflow HOSTREMOVAL{
paired.view()
}
else {
print("in single host branch\n")
//no need to merge if only reads from one host were removed
paired = collectCleanPairedReadsOneHost(settings, cleaned1_ch.concat(cleaned2_ch)).collect()
//calculate overall stats and create PDF
hostRemovalStats(settings, hostRemoval.out.cleanstats.collect(), hostRemoval.out.hostReads)
paired.view()
}
print("after host branch \n")
//merge clean unpaired reads (removing any duplicates by read name)
unpaired = collectCleanSingleReads(settings, hostRemoval.out.cleanedSingleton.collect())

Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ params {
faqcs = false
hostRemoval = false
annotation = false
runAssembly = true
runAssembly = false
}

//module parameters -- passed directly into subworkflows according to best practices
Expand Down

0 comments on commit eddba05

Please sign in to comment.