added singularity; edge NXF version

This commit is contained in:
kevinmenden 2020-12-17 07:33:44 +01:00
parent f35850bf14
commit d75cb75111
6 changed files with 37 additions and 11 deletions

View file

@ -16,16 +16,20 @@ on:
jobs: jobs:
ci_test: ci_test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
nxf_version: [20.11.0-edge]
env: env:
NXF_ANSI_LOG: false NXF_ANSI_LOG: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Nextflow - name: Install Nextflow
env:
NXF_VER: ${{ matrix.nxf_version }}
run: | run: |
export NXF_VER="20.07.1" wget -qO- get.nextflow.io | bash
wget -qO- get.nextflow.io | bash sudo mv nextflow /usr/local/bin/
sudo mv nextflow /usr/local/bin/
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2

View file

@ -14,16 +14,21 @@ on:
jobs: jobs:
ci_test: ci_test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
nxf_version: [20.11.0-edge]
env: env:
NXF_ANSI_LOG: false NXF_ANSI_LOG: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install Nextflow - name: Install Nextflow
env:
NXF_VER: ${{ matrix.nxf_version }}
run: | run: |
export NXF_VER="20.07.1" wget -qO- get.nextflow.io | bash
wget -qO- get.nextflow.io | bash sudo mv nextflow /usr/local/bin/
sudo mv nextflow /usr/local/bin/
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2

View file

@ -11,8 +11,12 @@ process BOWTIE_ALIGN {
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) } saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:meta.id) }
conda (params.enable_conda ? "bioconda::bowtie=1.3.0 bioconda::samtools=1.10" : null) conda (params.enable_conda ? "bioconda::bowtie=1.3.0 bioconda::samtools=1.10" : null)
container "quay.io/biocontainers/mulled-v2-ffbf83a6b0ab6ec567a336cf349b80637135bca3:9e14e16c284d6860574cf5b624bbc44c793cb024-0" if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/mulled-v2-ffbf83a6b0ab6ec567a336cf349b80637135bca3:9e14e16c284d6860574cf5b624bbc44c793cb024-0"
} else {
container "quay.io/biocontainers/mulled-v2-ffbf83a6b0ab6ec567a336cf349b80637135bca3:9e14e16c284d6860574cf5b624bbc44c793cb024-0"
}
input: input:
tuple val(meta), path(reads) tuple val(meta), path(reads)

View file

@ -29,6 +29,11 @@ params:
description: | description: |
Run the module with Conda using the software specified Run the module with Conda using the software specified
via the `conda` directive via the `conda` directive
- singularity_pull_docker_container:
type: boolean
description: |
Instead of directly downloading Singularity images for use with Singularity,
force the workflow to pull and convert Docker containers instead.
- save_unaligned: - save_unaligned:
type: boolean type: boolean
description: Save unaligned reads description: Save unaligned reads

View file

@ -11,9 +11,12 @@ process BOWTIE_INDEX {
mode: params.publish_dir_mode, mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') } saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), publish_id:'') }
conda (params.enable_conda ? "bioconda::bowtie=1.3.0" : null) conda (params.enable_conda ? "bioconda::bowtie=1.3.0" : null)
container "quay.io/biocontainers/bowtie:1.3.0--py38hed8969a_1" if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/bowtie:1.3.0--py38hed8969a_1"
} else {
container "quay.io/biocontainers/bowtie:1.3.0--py38hed8969a_1"
}
input: input:
path fasta path fasta

View file

@ -29,6 +29,11 @@ params:
description: | description: |
Run the module with Conda using the software specified Run the module with Conda using the software specified
via the `conda` directive via the `conda` directive
- singularity_pull_docker_container:
type: boolean
description: |
Instead of directly downloading Singularity images for use with Singularity,
force the workflow to pull and convert Docker containers instead.
input: input:
- fasta: - fasta:
type: file type: file