Skip to content

Commit

Permalink
Merge branch 'master' into update-deepvariant
Browse files Browse the repository at this point in the history
  • Loading branch information
famosab authored Dec 11, 2024
2 parents 1e04d54 + 7860035 commit 105004d
Show file tree
Hide file tree
Showing 62 changed files with 1,526 additions and 302 deletions.
2 changes: 2 additions & 0 deletions .github/conda_skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,5 @@ exclude:
path: modules/nf-core/xeniumranger/resegment
- profile: conda
path: modules/nf-core/xeniumranger/import-segmentation
- profile: conda
path: modules/nf-core/parabricks/genotypegvcf
13 changes: 9 additions & 4 deletions .github/workflows/gpu-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
# renovate: datasource=github-releases depName=nextflow-io/nextflow versioning=semver
NXF_VER: "24.10.1"
NXF_VER: "24.10.2"

jobs:
nf-test-changes:
Expand Down Expand Up @@ -108,13 +108,18 @@ jobs:
needs: [nf-test-gpu]
if: always()
steps:
- name: All tests ok
if: ${{ success() || !contains(needs.*.result, 'failure') }}
run: exit 0
- name: One or more tests failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

- name: One or more tests cancelled
if: ${{ contains(needs.*.result, 'cancelled') }}
run: exit 1

- name: All tests ok
if: ${{ contains(needs.*.result, 'success') }}
run: exit 0

- name: debug-print
if: always()
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
with:
python-version: "3.11"

- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
id: cache-pip
with:
path: ~/.cache/pip
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/nf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ env:
NXF_SINGULARITY_CACHEDIR: ${{ github.workspace }}/.singularity
NXF_SINGULARITY_LIBRARYDIR: ${{ github.workspace }}/.singularity
# renovate: datasource=github-releases depName=nextflow/nextflow versioning=semver
NXF_VER: "24.10.1"
NXF_VER: "24.10.2"

jobs:
nf-test-changes:
Expand Down Expand Up @@ -110,13 +110,18 @@ jobs:
needs: [nf-test]
if: always()
steps:
- name: All tests ok
if: ${{ success() || !contains(needs.*.result, 'failure') }}
run: exit 0
- name: One or more tests failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

- name: One or more tests cancelled
if: ${{ contains(needs.*.result, 'cancelled') }}
run: exit 1

- name: All tests ok
if: ${{ contains(needs.*.result, 'success') }}
run: exit 0

- name: debug-print
if: always()
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pytest-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ jobs:
with:
python-version: "3.11"

- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
id: cache-pip-pytest
with:
path: ~/.cache/pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wave.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Find conda differences
id: conda-diff
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # v45
uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45
with:
json: true
escape_json: false
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Find Dockerfile differences
id: docker-diff
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # v45
uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45
with:
json: true
escape_json: false
Expand Down
1 change: 0 additions & 1 deletion modules/nf-core/bwameth/align/tests/main.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,4 @@ nextflow_process {
)
}
}

}
2 changes: 1 addition & 1 deletion modules/nf-core/deseq2/differential/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ process DESEQ2_DIFFERENTIAL {
task.ext.when == null || task.ext.when

script:
template 'deseq_de.R'
template 'deseq2_differential.R'

stub:
"""
Expand Down
5 changes: 5 additions & 0 deletions modules/nf-core/foldmason/createdb/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
channels:
- conda-forge
- bioconda
dependencies:
- bioconda::foldmason=2.7bd21ed
47 changes: 47 additions & 0 deletions modules/nf-core/foldmason/createdb/main.nf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
process FOLDMASON_CREATEDB {
tag "$meta.id"
label 'process_low'

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/a8/a88d162c3f39a1518d48c3faec235e6fcde750586da868b62fc5f0a08a89aa9d/data' :
'community.wave.seqera.io/library/foldmason:2.7bd21ed--e7f739473ad6578d' }"

input:
tuple val(meta) , path(structures)

output:
tuple val(meta), path("${prefix}*"), emit: db
path "versions.yml" , emit: versions

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

script:
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"
"""
foldmason createdb \\
${structures} \\
${prefix} \\
$args \\
--threads $task.cpus
cat <<-END_VERSIONS > versions.yml
"${task.process}":
foldmason: \$(foldmason | grep "foldmason Version:" | cut -d":" -f 2 | awk '{\$1=\$1;print}')
END_VERSIONS
"""

stub:
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"
"""
touch ${prefix}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
foldmason: \$(foldmason | grep "foldmason Version:" | cut -d":" -f 2 | awk '{\$1=\$1;print}')
END_VERSIONS
"""
}
48 changes: 48 additions & 0 deletions modules/nf-core/foldmason/createdb/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "foldmason_createdb"
description: Creates a database for Foldmason.
keywords:
- alignment
- MSA
- genomics
- structure
tools:
- "foldmason":
description: "Multiple Protein Structure Alignment at Scale with FoldMason"
homepage: "https://github.com/steineggerlab/foldmason"
documentation: "https://github.com/steineggerlab/foldmason"
tool_dev_url: "https://github.com/steineggerlab/foldmason"
doi: "10.1101/2024.08.01.606130"
licence: ["GPL v3"]
identifier: biotools:foldmason

input:
- - meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- structures:
type: file
description: Input protein structures in `PDB` or `mmCIF` format.
pattern: "*.{pdb,mmcif}"

output:
- db:
- meta:
type: map
description: |
Groovy Map containing sample information
e.g. `[ id:'sample1', single_end:false ]`
- "${prefix}*":
type: file
description: All database files created by Foldmason
pattern: "*"
- versions:
- versions.yml:
type: file
description: File containing software versions
pattern: "versions.yml"
authors:
- "@luisas"
maintainers:
- "@luisas"
66 changes: 66 additions & 0 deletions modules/nf-core/foldmason/createdb/tests/main.nf.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
nextflow_process {

name "Test Process FOLDMASON_CREATEDB"
script "../main.nf"
process "FOLDMASON_CREATEDB"

tag "modules"
tag "modules_nfcore"
tag "foldmason"
tag "foldmason/createdb"
tag "untar"

setup {

run("UNTAR") {
script "../../../../../modules/nf-core/untar/main.nf"
process {
"""
archive = file("https://raw.githubusercontent.com/nf-core/test-datasets/multiplesequencealign/testdata/af2_structures/seatoxin-ref.tar.gz", checkIfExists: true)
input[0] = Channel.of(tuple([id:'test'], archive))
"""
}
}
}

test("seatoxin") {

when {

process {
"""
input[0] = UNTAR.out.untar.map { meta,dir -> [meta, file(dir).listFiles().collect()]}
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}

}

test("seatoxin - stub ") {

when {

process {
"""
input[0] = UNTAR.out.untar.map { meta,dir -> [meta, file(dir).listFiles().collect()]}
"""
}
}

then {
assertAll(
{ assert process.success },
{ assert snapshot(process.out).match() }
)
}

}

}
Loading

0 comments on commit 105004d

Please sign in to comment.