Skip to content

Commit

Permalink
Merge branch 'patch_2_5_1' of github.com:maxibor/mag into add_cat_2_s…
Browse files Browse the repository at this point in the history
…ummary
  • Loading branch information
maxibor committed Jan 26, 2024
2 parents 99f9aa8 + 3f3505a commit fa93107
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"python.linting.flake8Path": "/opt/conda/bin/flake8",
"python.linting.pycodestylePath": "/opt/conda/bin/pycodestyle",
"python.linting.pydocstylePath": "/opt/conda/bin/pydocstyle",
"python.linting.pylintPath": "/opt/conda/bin/pylint"
"python.linting.pylintPath": "/opt/conda/bin/pylint",
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
}
}
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"],
},
},
}
2 changes: 1 addition & 1 deletion modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
},
"gtdbtk/classifywf": {
"branch": "master",
"git_sha": "898259a38563f29c3c5d2490876019ec2d6f49c5",
"git_sha": "9bbc6a88ce3004ae4bc9f84cef762484dc2c95e5",
"installed_by": ["modules"]
},
"gunc/downloaddb": {
Expand Down
7 changes: 7 additions & 0 deletions modules/nf-core/gtdbtk/classifywf/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions modules/nf-core/gtdbtk/classifywf/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions modules/nf-core/gtdbtk/classifywf/meta.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions subworkflows/local/gtdbtk.nf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ workflow GTDBTK {
ch_filtered_bins = bins
.transpose()
.map { meta, bin -> [bin.getName(), bin, meta]}
.join(ch_bin_metrics, failOnDuplicate: true, failOnMismatch: false)
.join(ch_bin_metrics, failOnDuplicate: true)
.map { bin_name, bin, meta, completeness, contamination -> [meta, bin, completeness, contamination] }
.branch {
passed: (it[2] != -1 && it[2] >= params.gtdbtk_min_completeness && it[3] != -1 && it[3] <= params.gtdbtk_max_contamination)
Expand Down Expand Up @@ -88,8 +88,6 @@ workflow GTDBTK {
GTDBTK_CLASSIFYWF.out.summary.map{it[1]}.collect().ifEmpty([]),
[],
[]
// GTDBTK_CLASSIFYWF.out.filtered.map{it[1]}.collect().ifEmpty([]),
// GTDBTK_CLASSIFYWF.out.failed.map{it[1]}.collect().ifEmpty([])
)

emit:
Expand Down
2 changes: 2 additions & 0 deletions workflows/mag.nf
Original file line number Diff line number Diff line change
Expand Up @@ -937,11 +937,13 @@ workflow MAG {
ch_input_for_postbinning_bins_unbins,
ch_cat_db
)
// Group all classification results for each sample in a single file
ch_cat_summary = CAT.out.tax_classification_names
.collectFile(keepHeader: true) {
meta, classification ->
["${meta.id}.txt", classification]
}
// Group all classification results for the whole run in a single file
CAT_SUMMARY(
ch_cat_summary.collect()
)
Expand Down

0 comments on commit fa93107

Please sign in to comment.