Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch update of modules #6674

Merged
merged 9 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
127 changes: 64 additions & 63 deletions modules/meta-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,76 +38,16 @@
"type": "array",
"description": "Input channels for the module",
"items": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of the input channel",
"enum": ["map", "file", "directory", "string", "integer", "float", "boolean", "list"]
},
"description": {
"type": "string",
"description": "Description of the input channel"
},
"pattern": {
"type": "string",
"description": "Pattern of the input channel, given in Java glob syntax"
},
"default": {
"type": ["string", "number", "boolean", "array", "object"],
"description": "Default value for the input channel"
},
"enum": {
"type": "array",
"description": "List of allowed values for the input channel",
"items": {
"type": ["string", "number", "boolean", "array", "object"]
},
"uniqueItems": true
}
},
"required": ["type", "description"]
}
}
"type": "array",
"items": { "$ref": "#/definitions/elementProperties" }
}
},
"output": {
"type": "array",
"description": "Output channels for the module",
"items": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of the output channel",
"enum": ["map", "file", "directory", "string", "integer", "float", "boolean", "list"]
},
"description": {
"type": "string",
"description": "Description of the output channel"
},
"pattern": {
"type": "string",
"description": "Pattern of the input channel, given in Java glob syntax"
},
"enum": {
"type": "array",
"description": "List of allowed values for the output channel",
"items": {
"type": ["string", "number", "boolean", "array", "object"]
},
"uniqueItems": true
}
},
"required": ["type", "description"]
}
}
"items": { "$ref": "#/definitions/elementProperties" }
}
},
"tools": {
Expand Down Expand Up @@ -160,6 +100,19 @@
"minItems": 1,
"uniqueItems": true,
"message": "Licence must be an array of one or more entries, e.g. [\"MIT\"]"
},
"identifier": {
"description": "bio.tools identifier of the tool",
"anyOf": [
{
"type": "string",
"pattern": "^biotools:.*$"
},
{
"type": "string",
"maxLength": 0
}
]
}
},
"required": ["description"],
Expand All @@ -182,5 +135,53 @@
}
}
},
"definitions": {
"elementProperties": {
"type": "object",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of the channel element",
"enum": ["map", "file", "directory", "string", "integer", "float", "boolean", "list"]
},
"description": {
"type": "string",
"description": "Description of the channel"
},
"pattern": {
"type": "string",
"description": "Pattern of the channel, given in Java glob syntax"
},
"enum": {
"type": "array",
"description": "List of allowed values for the channel",
"items": {
"type": ["string", "number", "boolean", "array", "object"]
},
"uniqueItems": true
},
"ontologies": {
"type": "array",
"description": "List of ontologies for the channel",
"uniqueItems": true,
"items": {
"type": "object",
"patternProperties": {
".*": {
"type": "string",
"pattern": "^(http|https)://.*"
}
}
}
}
},
"required": ["type", "description"]
}
}
}
},
"required": ["name", "description", "keywords", "authors", "output", "tools"]
}
63 changes: 33 additions & 30 deletions modules/nf-core/abacas/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,43 @@ tools:
documentation: http://abacas.sourceforge.net/documentation.html
doi: "10.1093/bioinformatics/btp347"
licence: ["GPL v2-or-later"]
identifier: biotools:abacas
input:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- scaffold:
type: file
description: Fasta file containing scaffold
pattern: "*.{fasta,fa}"
- fasta:
type: file
description: FASTA reference file
pattern: "*.{fasta,fa}"
- - meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- scaffold:
type: file
description: Fasta file containing scaffold
pattern: "*.{fasta,fa}"
- - fasta:
type: file
description: FASTA reference file
pattern: "*.{fasta,fa}"
output:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- results:
type: file
description: |
List containing abacas output files
[ 'test.abacas.bin', 'test.abacas.fasta', 'test.abacas.gaps',
'test.abacas.gaps.tab', 'test.abacas.nucmer.delta',
'test.abacas.nucmer.filtered.delta', 'test.abacas.nucmer.tiling',
'test.abacas.tab', 'test.abacas.unused.contigs.out',
'test.abacas.MULTIFASTA.fa' ]
pattern: "*.{abacas}*"
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- "*.abacas*":
type: file
description: |
List containing abacas output files
[ 'test.abacas.bin', 'test.abacas.fasta', 'test.abacas.gaps',
'test.abacas.gaps.tab', 'test.abacas.nucmer.delta',
'test.abacas.nucmer.filtered.delta', 'test.abacas.nucmer.tiling',
'test.abacas.tab', 'test.abacas.unused.contigs.out',
'test.abacas.MULTIFASTA.fa' ]
pattern: "*.{abacas}*"
- versions:
type: file
description: File containing software versions
pattern: "versions.yml"
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
authors:
- "@joseespinosa"
- "@drpatelh"
Expand Down
54 changes: 29 additions & 25 deletions modules/nf-core/abricate/run/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,38 @@ tools:
documentation: https://github.com/tseemann/abricate
tool_dev_url: https://github.com/tseemann/abricate
licence: ["GPL v2"]
identifier: biotools:ABRicate
input:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- assembly:
type: file
description: FASTA, GenBank or EMBL formatted file
pattern: "*.{fa,fasta,fna,fa.gz,fasta.gz,fna.gz,gbk,gbk.gz,embl,embl.gz}"
- databasedir:
type: directory
description: Optional location of local copy of database files, possibly with custom databases set up with `abricate --setupdb`
pattern: "*/"
- - meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- assembly:
type: file
description: FASTA, GenBank or EMBL formatted file
pattern: "*.{fa,fasta,fna,fa.gz,fasta.gz,fna.gz,gbk,gbk.gz,embl,embl.gz}"
- - databasedir:
type: directory
description: Optional location of local copy of database files, possibly with
custom databases set up with `abricate --setupdb`
pattern: "*/"
output:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- versions:
type: file
description: File containing software versions
pattern: "versions.yml"
- report:
type: file
description: Tab-delimited report of results
pattern: "*.{txt}"
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- "*.txt":
type: file
description: Tab-delimited report of results
pattern: "*.{txt}"
- versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
authors:
- "@rpetit3"
maintainers:
Expand Down
45 changes: 24 additions & 21 deletions modules/nf-core/abricate/summary/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,33 @@ tools:
documentation: https://github.com/tseemann/abricate
tool_dev_url: https://github.com/tseemann/abricate
licence: ["GPL v2"]
identifier: biotools:ABRicate
input:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- reports:
type: file
description: FASTA, GenBank or EMBL formatted file
pattern: "*.{fa,fasta,fna,fa.gz,fasta.gz,fna.gz,gbk,gbk.gz,embl,embl.gz}"
- - meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- reports:
type: file
description: FASTA, GenBank or EMBL formatted file
pattern: "*.{fa,fasta,fna,fa.gz,fasta.gz,fna.gz,gbk,gbk.gz,embl,embl.gz}"
output:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- versions:
type: file
description: File containing software versions
pattern: "versions.yml"
- report:
type: file
description: Tab-delimited report of aggregated results
pattern: "*.{txt}"
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. [ id:'test', single_end:false ]
- "*.txt":
type: file
description: Tab-delimited report of aggregated results
pattern: "*.{txt}"
- versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
authors:
- "@rpetit3"
maintainers:
Expand Down
Loading
Loading