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

conda-free and nf-test #22

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ testing*
venv/
params*.json
sample_manifest*
*.log
tests/sample-data/*
tests/ref/*
!**/.gitkeep
.nf-test/
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ Initial release of QUANTS, created with the [nf-core](https://nf-co.re/) templat
* Ability to extract top 50 library-independent counts as FASTA
## 3.0.0.3 - [24th January 2024]

* Hotfix to force COLLATE_CUTADAPT_JSONS to run on 1 cpu
* Hotfix to force COLLATE_CUTADAPT_JSONS to run on 1 cpu

## 3.0.0.4 - [7th November 2024]

* Replace containers which use licensed conda packages
* Remove galaxy depot
6 changes: 3 additions & 3 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"nf-core": {
"fastqc": {
"branch": "master",
"git_sha": "e937c7950af70930d1f34bb961403d9d2aa81c7d",
"git_sha": "dc94b6ee04a05ddb9f7ae050712ff30a13149164",
"installed_by": [
"modules"
]
},
"multiqc": {
"branch": "master",
"git_sha": "e937c7950af70930d1f34bb961403d9d2aa81c7d",
"git_sha": "cf17ca47590cc578dfb47db1c2a44ef86f89976d",
"installed_by": [
"modules"
]
Expand All @@ -23,4 +23,4 @@
}
}
}
}
}
68 changes: 0 additions & 68 deletions modules/local/crispresso2/functions.nf

This file was deleted.

41 changes: 0 additions & 41 deletions modules/local/crispresso2/main.nf

This file was deleted.

49 changes: 0 additions & 49 deletions modules/local/crispresso2/meta.yml

This file was deleted.

7 changes: 2 additions & 5 deletions modules/local/cutadapt/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ process CUTADAPT {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) }

conda (params.enable_conda ? 'bioconda::cutadapt=4.4' : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container 'https://depot.galaxyproject.org/singularity/cutadapt:4.4--py39hf95cd2a_1'
} else {
container 'quay.io/biocontainers/cutadapt:4.4--py39hf95cd2a_1'
}
container 'quay.io/biocontainers/cutadapt:4.4--py39hf95cd2a_1'


input:
tuple val(meta), path(reads)
Expand Down
6 changes: 1 addition & 5 deletions modules/local/flash2/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ process FLASH2 {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) } conda (params.enable_conda ? "bioconda::flash=2.2.00" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/flash2:2.2.00--h5bf99c6_3"
} else {
container "quay.io/biocontainers/flash2:2.2.00--h5bf99c6_3"
}
container "quay.io/biocontainers/flash2:2.2.00--h5bf99c6_3"

input:
tuple val(meta), path(reads)
Expand Down
6 changes: 1 addition & 5 deletions modules/local/get_software_versions.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ process GET_SOFTWARE_VERSIONS {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:'pipeline_info', meta:[:], publish_by_meta:[]) }

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/python:3.8.3"
} else {
container "quay.io/biocontainers/python:3.8.3"
}
container "quay.io/biocontainers/python:3.8.3"

cache false

Expand Down
6 changes: 1 addition & 5 deletions modules/local/pyquest/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ process PYQUEST {

// Keep for when container is public
/*
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/flash2:2.2.00--h5bf99c6_3"
} else {
container "quay.io/biocontainers/flash2:2.2.00--h5bf99c6_3"
}
container "quay.io/biocontainers/flash2:2.2.00--h5bf99c6_3"
*/
container "quay.io/wtsicgp/pyquest:1.1.0"

Expand Down
8 changes: 2 additions & 6 deletions modules/local/pyquest_library_converter/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,8 @@ process TRANSFORM_LIBRARY_FOR_PYQUEST {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:'pyquest', meta:meta, publish_by_meta:['id']) } conda (params.enable_conda ? null : null)

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/python:3.8.3"
} else {
container "quay.io/biocontainers/python:3.8.3"
}
conda (params.enable_conda ? "conda-forge::python=3.12.7" : null)
container "docker.io/python:3.12.7"

input:
path(oligo_library)
Expand Down
22 changes: 16 additions & 6 deletions modules/local/read_modification/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,27 @@ process APPEND_STRINGS_TO_FQ {

script:
def software = getSoftwareName(task.process)
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
def input = reads
def append_start = params.append_start ? params.append_start : ""
def append_end = params.append_end ? params.append_end : ""
def append_quality_start = params.append_start ? params.append_quality*append_start.length() : ""
def append_quality_end = params.append_end ? params.append_quality*append_end.length() : ""
def output = "${prefix}.modified.fq.gz"
"""
zcat ${input} | awk -v append_start="${append_start}" -v append_end="${append_end}" -v append_quality_start="${append_quality_start}" -v append_quality_end="${append_quality_end}" '
NR % 4 == 2 { print append_start \$0 append_end; next }
NR % 4 == 0 { print append_quality_start \$0 append_quality_end; next }
{ print \$0 }
' | gzip > ${output}
"""

$/
zcat ${input} | \
sed -e '2~4s/^\(.*\)$/${append_start}\1${append_end}/' -e '4~4s/^\(.*\)$/${append_quality_start}\1${append_quality_end}/' | \
gzip > ${output}
/$

// "zcat ${input} | sed -e '2~4s/^\(.*\)$/${append_start}\1${append_end}/' -e '4~4s/^\(.*\)$/${append_quality_start}\1${append_quality_end}/' | gzip > ${output}'

// $/
// zcat ${input} | \
// sed -e '2~4s/^\(.*\)$/${append_start}\1${append_end}/' -e '4~4s/^\(.*\)$/${append_quality_start}\1${append_quality_end}/' | \
// gzip > ${output}
// /$
}
12 changes: 2 additions & 10 deletions modules/local/samplesheet_check.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ process SAMPLESHEET_CHECK_FASTQ {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:'pipeline_info', meta:[:], publish_by_meta:[]) }

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/python:3.8.3"
} else {
container "quay.io/biocontainers/python:3.8.3"
}
container "quay.io/biocontainers/python:3.8.3"

input:
path samplesheet
Expand All @@ -37,11 +33,7 @@ process SAMPLESHEET_CHECK_CRAM {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:'pipeline_info', meta:[:], publish_by_meta:[]) }

conda (params.enable_conda ? "conda-forge::python=3.8.3" : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/python:3.8.3"
} else {
container "quay.io/biocontainers/python:3.8.3"
}
container "quay.io/biocontainers/python:3.8.3"

input:
path samplesheet
Expand Down
4 changes: 1 addition & 3 deletions modules/local/samtools/bam2fq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ process SAMTOOLS_BAM2FQ {
label 'process_low'

conda (params.enable_conda ? "bioconda::samtools=1.15" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/samtools:1.15--h1170115_1' :
'quay.io/biocontainers/samtools:1.15--h1170115_1' }"
container 'quay.io/biocontainers/samtools:1.15--h1170115_1'

input:
tuple val(meta), path(inputbam)
Expand Down
7 changes: 1 addition & 6 deletions modules/local/seqkit_seq/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ process SEQKIT_SEQ {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process)+'_seq', meta:meta, publish_by_meta:['id']) }

conda (params.enable_conda ? "bioconda::seqkit=0.15.0" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/seqkit:0.15.0--0"
} else {
container "quay.io/biocontainers/seqkit:0.15.0--0"
}
container "quay.io/biocontainers/seqkit:0.15.0--0"

input:
tuple val(meta), path(reads)
Expand Down
7 changes: 1 addition & 6 deletions modules/local/seqkit_stats/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ process SEQKIT_STATS {
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process)+'_stats', meta:meta, publish_by_meta:['id']) }

conda (params.enable_conda ? "bioconda::seqkit=0.15.0" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/seqkit:0.15.0--0"
} else {
container "quay.io/biocontainers/seqkit:0.15.0--0"
}
container "quay.io/biocontainers/seqkit:0.15.0--0"

input:
tuple val(meta), path(reads)
Expand Down
6 changes: 1 addition & 5 deletions modules/local/seqprep/adapter_trimming/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ process SEQPREP {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) } conda (params.enable_conda ? "bioconda::seqprep=1.3.2" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/seqprep:1.3.2--h5bf99c6_5"
} else {
container "quay.io/biocontainers/seqprep:1.3.2--h5bf99c6_5"
}
container "quay.io/biocontainers/seqprep:1.3.2--h5bf99c6_5"

input:
tuple val(meta), path(reads)
Expand Down
6 changes: 1 addition & 5 deletions modules/local/seqprep/read_merging/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ process SEQPREP {
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) } conda (params.enable_conda ? "bioconda::seqprep=1.3.2" : null)

if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
container "https://depot.galaxyproject.org/singularity/seqprep:1.3.2--h5bf99c6_5"
} else {
container "quay.io/biocontainers/seqprep:1.3.2--h5bf99c6_5"
}
container "quay.io/biocontainers/seqprep:1.3.2--h5bf99c6_5"

input:
tuple val(meta), path(reads)
Expand Down
Loading
Loading