Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
prototaxites committed Nov 8, 2024
1 parent c7d5997 commit b719ed2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 22 deletions.
5 changes: 4 additions & 1 deletion modules/nf-core/coverm/contig/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ process COVERM_CONTIG {
conda "bioconda::coverm=0.7.0-0"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/coverm:0.7.0--h07ea13f_0' :
'quay.io/biocontainers/coverm:0.7.0--h07ea13f_0' }"
'biocontainers/coverm:0.7.0--h07ea13f_0' }"

input:
tuple val(meta), path(input)
Expand All @@ -17,6 +17,9 @@ process COVERM_CONTIG {
tuple val(meta), path("*.depth.txt"), emit: coverage
path "versions.yml" , emit: versions

when:
task.ext.when == null || task.ext.when

script:
def args = task.ext.args ?: ""
def prefix = task.ext.prefix ?: "${meta.id}"
Expand Down
44 changes: 23 additions & 21 deletions modules/nf-core/coverm/contig/meta.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json
name: "coverm_contig"
description: Map reads to contigs and estimate coverage
Expand All @@ -9,12 +8,13 @@ keywords:
- coverage
tools:
- "coverm":
description: "CoverM aims to be a configurable, easy to use and fast DNA read coverage and relative abundance calculator focused on metagenomics applications"
description: "CoverM aims to be a configurable, easy to use and fast DNA read
coverage and relative abundance calculator focused on metagenomics applications"
homepage: "https://github.com/wwood/CoverM"
documentation: "https://wwood.github.io/CoverM/coverm-contig.html"
tool_dev_url: "https://github.com/wwood/CoverM"
doi: ""
licence: ['GPL v3']
doi: "10.5281/zenodo.10531253"
licence: ["GPL v3"]
identifier: biotools:coverm

input:
Expand All @@ -39,7 +39,8 @@ input:
- reference:
type: file
description: Reference FASTA file to map reads to, or minimap2/strobealign index. Not required if using BAM input.
description: Reference FASTA file to map reads to, or minimap2/strobealign index.
Not required if using BAM input.
pattern: "*.{fasta,fasta.gz,mmi,sti}"

- - bam_input:
Expand All @@ -51,23 +52,24 @@ input:
description: True if input is interleaved fastq file

output:
- bam:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- "*.depths.txt":
type: file
description: Text file containing coverage information
pattern: "*.{txt}"

- coverage:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
pattern: "*.depths.{txt}"
- "*.depth.txt":
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
pattern: "*.depths.{txt}"
- versions:
- "versions.yml":
type: file
description: File containing software versions
pattern: "versions.yml"

- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
authors:
- "@prototaxites"
maintainers:
Expand Down

0 comments on commit b719ed2

Please sign in to comment.