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

Seqera containers: POC 5 #47

Closed
wants to merge 3 commits into from
Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion modules/local/plot_run_gantt/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ process PLOT_RUN_GANTT {
tag "$meta.id"

conda 'click=8.0.1 pandas=1.1.5 plotly_express=0.4.1 typing=3.10.0.0'
container 'seqeralabs/nf-aggregate:click-8.0.1_pandas-1.1.5_plotly_express-0.4.1_typing-3.10.0.0--ccea219dc6c3d6a1'

input:
tuple val(meta), path(run_dump)
Expand Down
9 changes: 8 additions & 1 deletion modules/local/plot_run_gantt/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ process {
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
}

profiles {
docker { process.withName: 'PLOT_RUN_GANTT' { container = 'community.wave.seqera.io/library/click_pandas_plotly_express_typing:21adb9e2d1b605a5' } }
docker_arm64 { process.withName: 'PLOT_RUN_GANTT' { container = 'community.wave.seqera.io/library/click_pandas_plotly_express_typing:2e5e17c7ed2d1115' } }
singularity { process.withName: 'PLOT_RUN_GANTT' { container = 'oras://community.wave.seqera.io/library/click_pandas_plotly_express_typing:a4af841350996386' } }
Comment on lines +12 to +15
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need withName selectors

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is being loaded by the top level pipeline, as part of the regular pipeline config. So I think we do?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that's why I asked for module config, otherwise this is almost the same as proposal 4

singularity_arm64 { process.withName: 'PLOT_RUN_GANTT' { container = 'oras://community.wave.seqera.io/library/click_pandas_plotly_express_typing:3fe674b9fa7b15b8' } }
}
1 change: 0 additions & 1 deletion modules/local/seqera_runs_dump/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ include { getRunMetadata } from './functions'
process SEQERA_RUNS_DUMP {
tag "$meta.id"
conda 'tower-cli=0.9.2'
container 'seqeralabs/nf-aggregate:tower-cli-0.9.2--hdfd78af_1'

input:
val meta
Expand Down
7 changes: 7 additions & 0 deletions modules/local/seqera_runs_dump/nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,10 @@ process {
]
}
}

profiles {
docker { process.withName: 'SEQERA_RUNS_DUMP' { container = 'community.wave.seqera.io/library/tower-cli:0.9.2--dc544a7e574ab73b' } }
docker_arm64 { process.withName: 'SEQERA_RUNS_DUMP' { container = 'community.wave.seqera.io/library/tower-cli:0.9.2--104eab7c00912b48' } }
singularity { process.withName: 'SEQERA_RUNS_DUMP' { container = 'oras://community.wave.seqera.io/library/tower-cli:0.9.2--810270aea7c40770' } }
singularity_arm64 { process.withName: 'SEQERA_RUNS_DUMP' { container = 'oras://community.wave.seqera.io/library/tower-cli:0.9.2--23fa648bc78102d6' } }
}
3 changes: 0 additions & 3 deletions modules/nf-core/multiqc/main.nf

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

9 changes: 8 additions & 1 deletion modules/nf-core/multiqc/nextflow.config

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

12 changes: 3 additions & 9 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,10 @@ profiles {
cleanup = false
nextflow.enable.configProcessNamesValidation = true
}
wave {
apptainer.ociAutoPull = true
singularity.ociAutoPull = true
wave.build.repository = 'quay.io/seqeralabs/nf-aggregate'
seqera_containers {
wave.enabled = true
wave.freeze = true
wave.strategy = ['conda', 'container', 'dockerfile', 'spack']
wave.strategy = ['conda']
}
conda {
conda.enabled = true
Expand Down Expand Up @@ -103,7 +100,7 @@ profiles {
docker.runOptions = '-u $(id -u):$(id -g)'
}
arm {
docker.runOptions = '-u $(id -u):$(id -g) --platform=linux/amd64'
process.arch = 'linux/arm64'
}
singularity {
singularity.enabled = true
Expand Down Expand Up @@ -184,9 +181,6 @@ env {
TOWER_ACCESS_TOKEN = "$TOWER_ACCESS_TOKEN"
}

// Load Nextflow config for nf_aggregate workflow
includeConfig 'workflows/nf_aggregate/nextflow.config'

// Capture exit codes from upstream processes when piping
process.shell = ['/bin/bash', '-euo', 'pipefail']

Expand Down
4 changes: 4 additions & 0 deletions workflows/nf_aggregate/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
//

include { SEQERA_RUNS_DUMP } from '../../modules/local/seqera_runs_dump'
includeConfig '../../modules/local/seqera_runs_dump/nextflow.config'
include { PLOT_RUN_GANTT } from '../../modules/local/plot_run_gantt'
includeConfig '../../modules/local/plot_run_gantt/nextflow.config'
include { MULTIQC } from '../../modules/nf-core/multiqc'
includeConfig '../../modules/nf-core/multiqc/nextflow.config'

Comment on lines +6 to +11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you proposing this new syntax? It is not currently supported

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hah, not intentionally

include { paramsSummaryMultiqc } from '../../subworkflows/local/utils_nf_aggregate'
include { getProcessVersions } from '../../subworkflows/local/utils_nf_aggregate'
include { getWorkflowVersions } from '../../subworkflows/local/utils_nf_aggregate'
Expand Down
3 changes: 0 additions & 3 deletions workflows/nf_aggregate/nextflow.config

This file was deleted.

Loading