Skip to content

Commit

Permalink
fixed metawrap issue with conda (not installing)
Browse files Browse the repository at this point in the history
  • Loading branch information
RVanDamme committed Aug 11, 2020
1 parent 85fc2da commit f5aad5e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions modules/metawrap_refine_bin.nf
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
process refine2 {
errorStrategy = { task.exitStatus==14 ? 'retry' : 'terminate' }
maxRetries = 5
if (workflow.profile.contains('conda')) {conda '/path/to/miniconda3/envs/metawrap-env'}
else {label 'metawrap'}
// uncomment the if else if you encounter issue using conda with metawrap
//if (workflow.profile.contains('conda')) {conda '/path/to/miniconda3/envs/metawrap-env'}
//else {label 'metawrap'}
label 'metawrap'
publishDir "${params.output}/${name}/assemble/binning/metawrap_refined_bins/", mode: 'copy', pattern: "metawrap_bins/*"
publishDir "${params.output}/${name}/assemble/binning/metawrap_refined_bins/", mode: 'copy', pattern: "${name}_binning_stats.txt"
input:
Expand All @@ -27,8 +29,10 @@ process refine2 {
}

process refine3 {
if (workflow.profile.contains('conda')) {conda '/path/to/miniconda3/envs/metawrap-env'}
else {label 'metawrap'}
// uncomment the if else if you encounter issue using conda with metawrap
//if (workflow.profile.contains('conda')) {conda '/path/to/miniconda3/envs/metawrap-env'}
//else {label 'metawrap'}
label 'metawrap'
publishDir "${params.output}/${name}/assemble/binning/metawrap_refined_bins/", mode: 'copy', pattern: "metawrap_bins/*"
publishDir "${params.output}/${name}/assemble/binning/metawrap_refined_bins/", mode: 'copy', pattern: "${name}_binning_stats.txt"
errorStrategy { task.exitStatus in 1..1 ? 'retry' : 'finish'}
Expand Down

0 comments on commit f5aad5e

Please sign in to comment.