Skip to content

Commit

Permalink
Fix linting, update dastool + metabat2 modules, fix renamed modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Downie committed Dec 12, 2024
1 parent 05c8326 commit b6f807a
Show file tree
Hide file tree
Showing 23 changed files with 1,197 additions and 96 deletions.
2 changes: 0 additions & 2 deletions .nf-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ lint:
- validation.summary.afterText
readme:
- nextflow_badge
- nextflow_badge
- nextflow_badge
nf_core_version: 3.0.2
org_path: null
repository_type: pipeline
Expand Down
24 changes: 15 additions & 9 deletions bin/extract_ncbi_name.awk
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
BEGIN {
## Extact the highest level NCBI rank converted by the
## gtdb_to_ncbi_majority_vote.py script and save it to
## a new column to parse with taxonkit.
##
## Author: Jim Downie, December 2024

BEGIN {
FS = "\t"
OFS = FS
}
NR == 1 { print $1, $2, $3, "name" }
NR == 1 { print $1, $2, $3, "name", "taxid" }
NR > 1 {
if($0 ~ /Unclassified/) {
print $1, $2, $3, $3
next
}
if($0 ~ /Unclassified/) {
print $1, $2, $3, $3
next
}
n_elem = split($3, names, /;?[[:alpha:]]__/)
for(i = n_elem; i > 1; i--) {
if(names[i] != "") {
if(names[i] != "") {
print $1, $2, $3, names[i]
break
break
}
}
}
}
6 changes: 3 additions & 3 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
},
"dastool/dastool": {
"branch": "master",
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",
"git_sha": "6d736588f4af4bc9b615bd7189442bd4272ae26e",
"installed_by": ["modules"]
},
"dastool/fastatocontig2bin": {
"branch": "master",
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",
"git_sha": "6d736588f4af4bc9b615bd7189442bd4272ae26e",
"installed_by": ["modules"]
},
"gawk": {
Expand Down Expand Up @@ -66,7 +66,7 @@
},
"metabat2/metabat2": {
"branch": "master",
"git_sha": "666652151335353eef2fcd58880bcef5bc2928e1",
"git_sha": "6d736588f4af4bc9b615bd7189442bd4272ae26e",
"installed_by": ["modules"],
"patch": "modules/nf-core/metabat2/metabat2/metabat2-metabat2.diff"
},
Expand Down
2 changes: 1 addition & 1 deletion modules/nf-core/dastool/dastool/environment.yml

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

36 changes: 28 additions & 8 deletions modules/nf-core/dastool/dastool/main.nf

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

11 changes: 6 additions & 5 deletions modules/nf-core/dastool/dastool/meta.yml

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

177 changes: 177 additions & 0 deletions modules/nf-core/dastool/dastool/tests/main.nf.test

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

Loading

0 comments on commit b6f807a

Please sign in to comment.