Skip to content

Commit d65a0ef

Browse files
committed
Remove mmseqs/createindex module and update mmseqs/easysearch module
1 parent 43760ef commit d65a0ef

File tree

15 files changed

+22
-291
lines changed

15 files changed

+22
-291
lines changed

conf/modules.config

+2-12
Original file line numberDiff line numberDiff line change
@@ -1344,20 +1344,10 @@ process {
13441344
]
13451345
}
13461346

1347-
withName: MMSEQS_CREATEINDEX {
1348-
ext.args = '--search-type 2' // make sure search-type match easy-search
1349-
publishDir = [
1350-
path: { "${params.outdir}/databases/${meta.id}" },
1351-
mode: params.publish_dir_mode,
1352-
enabled: params.save_databases,
1353-
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
1354-
]
1355-
}
1356-
13571347
withName: MMSEQS_EASYSEARCH {
1358-
ext.args= '--search-type 2 --rescore-mode 3 --format-output query,target,theader,fident,qlen,tlen,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits' // don't change format-output
1348+
ext.args= { "--search-type ${params.mmseqs_searchtype} --rescore-mode 3 --format-output query,target,theader,fident,qlen,tlen,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits" } // don't change format-output
13591349
publishDir = [
1360-
path: { "${params.outdir}/consensus_qc/${meta.sample}/mmseqs/" },
1350+
path: { "${params.outdir}/consensus_qc/mmseqs/"},
13611351
mode: params.publish_dir_mode,
13621352
pattern: "*.tsv",
13631353
saveAs: { filename -> params.prefix || params.global_prefix ? "${params.global_prefix}-$filename" : filename }

modules.json

-5
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,6 @@
222222
"git_sha": "18a43d316b6fd683dc2346867b42882b99811cfd",
223223
"installed_by": ["modules"]
224224
},
225-
"mmseqs/createindex": {
226-
"branch": "master",
227-
"git_sha": "151460db852d636979d9ff3ee631e2268060d4c3",
228-
"installed_by": ["modules"]
229-
},
230225
"mmseqs/createtsv": {
231226
"branch": "master",
232227
"git_sha": "151460db852d636979d9ff3ee631e2268060d4c3",

modules/nf-core/custom/dumpsoftwareversions/main.nf

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/mmseqs/createindex/environment.yml

-7
This file was deleted.

modules/nf-core/mmseqs/createindex/main.nf

-53
This file was deleted.

modules/nf-core/mmseqs/createindex/meta.yml

-42
This file was deleted.

modules/nf-core/mmseqs/createindex/tests/main.nf.test

-92
This file was deleted.

modules/nf-core/mmseqs/createindex/tests/main.nf.test.snap

-54
This file was deleted.

modules/nf-core/mmseqs/createindex/tests/nextflow.config

-9
This file was deleted.

modules/nf-core/mmseqs/createindex/tests/tags.yml

-2
This file was deleted.

modules/nf-core/mmseqs/easysearch/main.nf

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/nf-core/multiqc/main.nf

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nextflow.config

+1
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ params {
124124
skip_alignment_qc = false
125125
annotation_db = "https://viralzone.expasy.org/resources/Virosaurus/2020%5F4/virosaurus90%5Fvertebrate-20200330.fas.gz"
126126
skip_annotation = false
127+
mmseqs_searchtype = 3
127128

128129
// Global
129130
prefix = null

nextflow_schema.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@
779779
},
780780
"annotation_db": {
781781
"type": "string",
782-
"default": "${projectDir}/assets/bv-brc-refvirus-anno.withRC.fasta.gz",
782+
"default": "https://viralzone.expasy.org/resources/Virosaurus/2020%5F4/virosaurus90%5Fvertebrate-20200330.fas.gz",
783783
"fa_icon": "fas fa-database",
784784
"description": "Database used for annotation of the cosensus constructs",
785785
"help_text": "The metada fields are stored in the fasta comment as `key1:\"value1\"|key2:\"value2\"|...` see docs/databases.md for more information."
@@ -798,6 +798,13 @@
798798
"type": "boolean",
799799
"description": "Skip creating an alignment of each the collapsed clusters and each iterative step",
800800
"fa_icon": "fas fa-forward"
801+
},
802+
"mmseqs_searchtype": {
803+
"type": "integer",
804+
"default": 3,
805+
"fa_icon": "fas fa-search",
806+
"description": "Specify the search algorithm to use for mmseqs. 0: auto 1: amino acid, 2: translated, 3: nucleotide, 4: translated nucleotide alignment",
807+
"help_text": "Only search-type 3 supports both forward and reverse search\n1 - BLASTP;\n2 - TBLASTN;\n3 - BLASTN;\n4 - TBLASTX"
801808
}
802809
},
803810
"fa_icon": "fas fa-balance-scale"

subworkflows/local/mmseqs_annotate.nf

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
include { MMSEQS_CREATEDB as MMSEQS_CREATEANNOTATIONDB } from '../../modules/nf-core/mmseqs/createdb/main'
3-
include { MMSEQS_CREATEINDEX } from '../../modules/nf-core/mmseqs/createindex/main'
43
include { MMSEQS_EASYSEARCH } from '../../modules/nf-core/mmseqs/easysearch/main'
54

65
workflow MMSEQS_ANNOTATE {
@@ -15,12 +14,8 @@ workflow MMSEQS_ANNOTATE {
1514
MMSEQS_CREATEANNOTATIONDB ( db )
1615
ch_versions = ch_versions.mix(MMSEQS_CREATEANNOTATIONDB.out.versions)
1716

18-
// create mmseqs index for faster reuse of the db
19-
MMSEQS_CREATEINDEX ( MMSEQS_CREATEANNOTATIONDB.out.db )
20-
ch_versions = ch_versions.mix(MMSEQS_CREATEINDEX.out.versions)
21-
2217
// search the genomes against the annotation db
23-
MMSEQS_EASYSEARCH ( genomes, MMSEQS_CREATEINDEX.out.db_indexed )
18+
MMSEQS_EASYSEARCH ( genomes, MMSEQS_CREATEANNOTATIONDB.out.db )
2419
ch_versions = ch_versions.mix(MMSEQS_EASYSEARCH.out.versions.first())
2520

2621
emit:

0 commit comments

Comments
 (0)