Skip to content

Commit 951dacc

Browse files
committed
validateParams is working, nf-schema plugins are working
1 parent 1677f70 commit 951dacc

18 files changed

Lines changed: 24 additions & 182 deletions

File tree

assets/Dockerfile_bambu

Lines changed: 0 additions & 29 deletions
This file was deleted.

assets/Dockerfile_bambu_2

Lines changed: 0 additions & 39 deletions
This file was deleted.

assets/samplesheet.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sample,replicate,read_path
1+
sample,replicate,reads
22
COLOBL_RNA_600,,/mnt/hdd1/MedGen_RNA_datasets/COLOBL_RNA_600/fastq_pass/COLOBL_RNA_660.fastq.gz

assets/schema_input.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "http://json-schema.org/draft/2020-12/schema",
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"$id": "https://raw.githubusercontent.com/number-25/LongTranscriptomics/dev/assets/schema_input.json",
44
"title": "number-25/LongTranscriptomics pipeline - params.input schema",
55
"description": "Schema for the file provided with params.input",
@@ -15,18 +15,18 @@
1515
},
1616
"replicate": {
1717
"type": "integer",
18-
"pattern": "\d+",
18+
"pattern": "\\d+",
1919
"errorMessage": "Replicate must be an integer",
2020
"meta": ["replicate"]
2121
},
22-
"fastq": {
22+
"reads": {
2323
"type": "string",
2424
"format": "file-path",
2525
"exists": true,
2626
"pattern": "^\\S+\\.f(ast)?q\\.gz$",
27-
"errorMessage": "FastQ file must be provided, cannot contain spaces and must have extension '.fq.gz' or '.fastq.gz'"
27+
"errorMessage": "FastQ/BAM file must be provided, cannot contain spaces and must have extension '.fq.gz', '.fastq.gz' or '.bam'"
2828
}
2929
},
30-
"required": ["sample", "fastq"]
30+
"required": ["sample", "reads"]
3131
}
3232
}

conf/test.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ params {
8888
validation {
8989
help {
9090
enabled = true
91-
beforeText = "Welcome to LongTranscriptomics, I see you are seeking help."
91+
beforeText = "Welcome to LongTranscriptomics, I see you are seeking help. "
9292
afterText = "Farewell, hopefully this was helpful. Please cite the pipeline owners when using this pipeline."
9393
command = "nextflow run . -profile <profile> --outdir <outdir>"
9494
}

main.nf

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ workflow{
2727
// nf-scheme validations
2828
//
2929

30-
// validateParameters()
30+
validateParameters()
31+
3132
log.info paramsSummaryLog(workflow)
3233

3334
if (params.help) {
3435
log.info paramsHelp(
35-
beforeText: "Welcome to LongTranscriptomics, I see you are seeking help.",
36+
beforeText: "Welcome to LongTranscriptomics, I see you are seeking help. ",
3637
afterText: "Farewell, hopefully this was helpful.",
3738
command: "nextflow run . -profile <profile> --outdir <outdir>",
3839
)
3940
exit 0
4041
}
4142

42-
4343
DIRECTRNA ()
4444
}
4545
/*
@@ -52,18 +52,6 @@ workflow {
5252
5353
main:
5454
55-
//
56-
// SUBWORKFLOW: Run initialisation tasks
57-
/*
58-
PIPELINE_INITIALISATION (
59-
params.version,
60-
params.help,
61-
params.validate_params,
62-
params.monochrome_logs,
63-
args,
64-
params.outdir,
65-
params.input
66-
)
6755
PIPELINE_COMPLETION (
6856
params.email,
6957
params.email_on_fail,

modules.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,10 @@
2424
},
2525
"subworkflows": {
2626
"nf-core": {
27-
"utils_nextflow_pipeline": {
28-
"branch": "master",
29-
"git_sha": "05954dab2ff481bcb999f24455da29a5828af08d",
30-
"installed_by": ["subworkflows"]
31-
},
3227
"utils_nfcore_pipeline": {
3328
"branch": "master",
3429
"git_sha": "05954dab2ff481bcb999f24455da29a5828af08d",
3530
"installed_by": ["subworkflows"]
36-
},
37-
"utils_nfvalidation_plugin": {
38-
"branch": "master",
39-
"git_sha": "05954dab2ff481bcb999f24455da29a5828af08d",
40-
"installed_by": ["subworkflows"]
4131
}
4232
}
4333
}

modules/local/bambu/bambu/main.nf

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,18 @@ process BAMBU {
66
'docker://number25/bambu:3.12.0' :
77
'docker://quay.io/number_25/bambu:3.12.0' }"
88

9-
// 'docker://quay.io/biocontainers/bioconductor-bambu:3.0.8--r42hc247a5b_0' }"
10-
// 'docker://quay.io/biocontainers/bioconductor-bambu:3.0.8--r42hc247a5b_0' }"
11-
//containerOptions = '-u $(id -u):$(id -g)'
12-
//'number25/bambu:3.8.0':
13-
//'docker://quay.io/number_25/bambu:latest' }"
14-
// 'https://depot.galaxyproject.org/singularity/bioconductor-bambu:3.4.0--r43hf17093f_1' :
15-
//'quay.io/biocontainers/bioconductor-bambu:3.4.0--r43hf17093f_1' }"
16-
179
input:
1810
path(genome_fasta)
1911
path(annotation_gtf)
2012
tuple val(meta), path(bam)
2113

2214
output:
23-
//path "counts_gene.txt" , emit: ch_gene_counts
24-
//path "counts_transcript.txt" , emit: ch_transcript_counts
25-
path "extended_annotations.gtf"
26-
path "allTranscriptModels.gtf"
27-
path "novelTranscripts.gtf"
15+
path "*.gtf"
2816
tuple val(meta), path("supportedTranscriptModels.gtf") , emit: bambu_supported_gtf
2917
path "versions.yml" , emit: versions
3018

3119
when:
3220
task.ext.when == null || task.ext.when
33-
//def prefix = task.ext.prefix ?: "${meta.id}_${meta.replicate}_bambu"
3421

3522
script:
3623
"""

nextflow

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ function launch_nextflow() {
196196
for x in "${launcher[@]}"; do
197197
x="${x%\"}"
198198
x="${x#\"}"
199-
cmdline+=("$x")
200-
done
199+
cmdline+=("$x")
200+
done
201201

202202
if [[ "$bg" ]]; then
203203
local pid_file="${NXF_PID_FILE:-.nextflow.pid}"

nextflow.config

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
//Plugins
99
plugins {
10-
id 'nf-schema@2.6.1'
10+
id 'nf-schema@2.5.1'
1111
}
1212

1313
// Global default params, used in configs
@@ -294,11 +294,6 @@ docker.registry = 'quay.io'
294294
podman.registry = 'quay.io'
295295
singularity.registry = 'quay.io'
296296

297-
// Nextflow plugins
298-
plugins {
299-
id 'nf-schema@2.0.0' // Validation of pipeline parameters and creation of an input channel from a sample sheet
300-
}
301-
302297
// Load igenomes.config if required
303298
//if (!params.igenomes_ignore) {
304299
//includeConfig 'conf/igenomes.config'

0 commit comments

Comments
 (0)