Skip to content

Commit 4980e4a

Browse files
committed
some more schema tweaking, help etc - still not functioning as expected
1 parent b0aa23a commit 4980e4a

14 files changed

+168
-14
lines changed

assets/test_data/KCMF1_hg38.fa.gz

25.7 KB
Binary file not shown.
2.64 KB
Binary file not shown.
1.2 KB
Binary file not shown.
994 KB
Binary file not shown.
24.3 KB
Binary file not shown.

assets/test_data/dummy_sequencing_summary.txt

Whitespace-only changes.

conf/test.config

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,16 @@ params {
8282
sqanti_qc_intron_junctions = true
8383
sqanti_qc_intron_path = null
8484
extra_sqanti_qc_options = null
85-
help = false
85+
help = true
86+
}
87+
88+
validation {
89+
help {
90+
enabled = true
91+
beforeText = "Welcome to LongTranscriptomics, I see you are seeking help."
92+
afterText = "Farewell, hopefully this was helpful. Please cite the pipeline owners when using this pipeline."
93+
command = "nextflow run . -profile <profile> --outdir <outdir>"
94+
}
8695
}
8796

8897
includeConfig "../modules/local/isoquant/isoquant/test_nextflow.config"

conf/test_full.config

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ params {
2828
bam_input = false
2929
// Genome references
3030
// These channel names have to match those in the full workflow also
31-
genome_fasta = "assets/fulltest_data/hg38.analysisSet.fa"
31+
genome_fasta = "assets/fulltest_data/hg38.analysisSet.fa.gz"
3232
genome_fasta_index = "assets/fulltest_data/hg38.analysisSet.fa.fai"
3333
genome_fasta_sizes = null
3434
genome_minimap2_index = null
35-
transcriptome_fasta = "assets/fulltest_data/Homo_sapiens.GRCh38.112_chr_transcripts.fa"
35+
transcriptome_fasta = "assets/fulltest_data/Homo_sapiens.GRCh38.112_chr_transcripts.fa.gz"
3636
transcriptome_minimap2_index = null
37-
annotation_gtf = "assets/fulltest_data/Homo_sapiens.GRCh38.112_chr.gtf"
37+
annotation_gtf = "assets/fulltest_data/Homo_sapiens.GRCh38.112_chr.gtf.gz"
3838
skip_prepare_reference = false
3939
skip_mapping = false
4040
skip_bam_to_bigwig = false
@@ -81,5 +81,14 @@ params {
8181
sqanti_qc_intron_junctions = false
8282
sqanti_qc_intron_path = null
8383
extra_sqanti_qc_options = null
84-
help = false
84+
help = true
85+
}
86+
87+
validation {
88+
help {
89+
enabled = true
90+
beforeText = "Welcome to LongTranscriptomics, I see you are seeking help."
91+
afterText = "Farewell, hopefully this was helpful. "Please cite the pipeline owners when using this pipeline."
92+
command = "nextflow run . -profile <profile> --outdir <outdir>"
93+
}
8594
}

conf/test_gzipped.config

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
/*
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
Nextflow config file for running minimal tests
4+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5+
Defines input files and everything required to run a fast and simple pipeline test.
6+
7+
Use as follows:
8+
nextflow run . -profile test,<docker/singularity> --outdir <OUTDIR>
9+
10+
----------------------------------------------------------------------------------------
11+
*/
12+
13+
params {
14+
config_profile_name = 'Test profile'
15+
config_profile_description = 'Minimal test dataset to check pipeline function'
16+
config_profile_url = "https://github.com/number-25/LongTranscriptomics/blob/dev/conf/test.config"
17+
18+
// Limit resources so that this can run on GitHub Actions
19+
max_cpus = 2
20+
max_memory = '6.GB'
21+
max_time = '12.h'
22+
23+
// Input data
24+
input = 'test/samplesheets/samplesheet_test_dRNA.csv'
25+
sequencing_type = "ont-drna" // sequencing molecule [ont-drna OR ont-cdna]
26+
bam_input = false
27+
// Genome references
28+
// These channel names have to match those in the full workflow also
29+
genome_fasta = "assets/test_data/KCMF1_hg38.fa"
30+
genome_fasta_index = "assets/test_data/KCMF1_hg38.fa.fai"
31+
genome_fasta_sizes = "assets/test_data/KCMF1_hg38.fa.sizes"
32+
genome_minimap2_index = "assets/test_data/KCMF1_hg38_k14.mmi"
33+
transcriptome_fasta = "assets/test_data/KCMF1_hg38_transcript.fa"
34+
transcriptome_minimap2_index = "assets/test_data/KCMF1_hg38_transcript_k14.mmi"
35+
annotation_gtf = "assets/test_data/KCMF1_hg38_transcript.gtf"
36+
skip_prepare_reference = true
37+
//annotation_gtf = "https://raw.githubusercontent.com/nf-core/test-datasets/nanoseq/reference/chr22_1-17500000.gtf"
38+
//genome_fasta = 'https://raw.githubusercontent.com/nf-core/test-datasets/nanoseq/reference/chr22_1-17550000.fa'
39+
//input_path = 'https://github.com/nf-core/test-datasets/blob/nanoseq/fastq/demultiplexed/quantification/bambu/MCF7_directRNA_replicate4.fastq.gz'
40+
// Skip processes for test
41+
// Give any required params for the test so that command line flags are not needed
42+
skip_mapping = false
43+
skip_bam_to_bigwig = false
44+
skip_qc = false
45+
skip_bam_qc = false
46+
skip_nanoq = false
47+
skip_sequali = false
48+
skip_alfred = false
49+
skip_cramino = false
50+
skip_samtools_flagstat = false
51+
skip_ngs_bits = true
52+
ngs_bits_skip_contamination = true // default: [false]
53+
ngs_bits_build = 'hg38' // options: [hg38, hg19, non_human]
54+
cramino_min_length = 0 // minimum re
55+
skip_jaccard = true
56+
skip_flair = true
57+
skip_flair_correct = true
58+
skip_flair_collapse = true
59+
extra_flair_collapse_options = null
60+
skip_bambu = true
61+
skip_isoquant = true
62+
skip_isoquant_correction = true
63+
extra_isoquant_options = null
64+
skip_stringtie = false
65+
extra_stringtie_options = null
66+
skip_jaffal = true
67+
skip_jaffal_download = true
68+
// TRANSCRIPT QUANTIFICATION
69+
skip_transcript_quantification = false
70+
skip_oarfish = false
71+
skip_sqanti_all = true
72+
skip_gffcompare = false
73+
extra_gffcompare_options = null
74+
skip_sqanti_qc = true
75+
sqanti_qc_reference = 'human'
76+
sqanti_qc_cage = true
77+
sqanti_qc_cage_path = null
78+
sqanti_qc_polyA_sites = true
79+
sqanti_qc_polyA_sites_path = null
80+
sqanti_qc_polyA_motif = true
81+
sqanti_qc_polyA_motif_path = null
82+
sqanti_qc_intron_junctions = true
83+
sqanti_qc_intron_path = null
84+
extra_sqanti_qc_options = null
85+
help = true
86+
}
87+
88+
validation {
89+
help {
90+
enabled = true
91+
beforeText = "Welcome to LongTranscriptomics, I see you are seeking help."
92+
afterText = "Farewell, hopefully this was helpful. Please cite the pipeline owners when using this pipeline."
93+
command = "nextflow run . -profile <profile> --outdir <outdir>"
94+
}
95+
}
96+
97+
includeConfig "../modules/local/isoquant/isoquant/test_nextflow.config"
98+
includeConfig "../modules/local/gffcompare/gffcompare/nextflow.config"
99+
includeConfig "../modules/local/nanoq/nanoq/nextflow.config"
100+
includeConfig "../modules/local/sequali/sequali/nextflow.config"
101+
includeConfig "../modules/local/minimap2/align/nextflow.config"
102+
includeConfig "../modules/local/samtools/sort/nextflow.config"
103+
includeConfig "../modules/local/samtools/index/nextflow.config"
104+
includeConfig "../modules/local/bedtools/bam_to_bedgraph/nextflow.config"
105+
includeConfig "../modules/local/bedtools/bam_to_bedgraph/nextflow.config"
106+
includeConfig "../modules/local/ucsc/bedgraphtobigwig/nextflow.config"
107+
includeConfig "../modules/local/ucsc/bedclip/nextflow.config"
108+
includeConfig "../modules/local/alfred/qc/nextflow.config"
109+
includeConfig "../modules/local/alfred/transpose/nextflow.config"
110+
includeConfig "../modules/local/cramino/cramino/nextflow.config"
111+
includeConfig "../modules/local/ngsbits/mapping_qc/nextflow.config"
112+
includeConfig "../modules/local/samtools/flagstat/nextflow.config"
113+
includeConfig "../modules/local/flair/bam_to_bed12/nextflow.config"
114+
includeConfig "../modules/local/flair/correct/nextflow.config"
115+
includeConfig "../modules/local/flair/collapse/nextflow.config"
116+
includeConfig "../modules/local/bambu/bambu/nextflow.config"
117+
includeConfig "../modules/local/isoquant/isoquant/nextflow.config"
118+
includeConfig "../modules/local/stringtie/stringtie/nextflow.config"
119+
includeConfig "../modules/local/gffread/gffread/nextflow.config"
120+
includeConfig "../modules/local/jaffal/bpipe/nextflow.config"
121+
includeConfig "../modules/local/oarfish/raw_read/nextflow.config"
122+
includeConfig "../modules/local/bedtools/jaccard/nextflow.config"
123+
includeConfig "../modules/local/gffcompare/gffcompare/nextflow.config"
124+
includeConfig "../modules/local/curl/curl/nextflow.config"
125+
includeConfig "../modules/local/minimap2/index/nextflow.config"
126+
includeConfig "../modules/local/unzip/unzip/nextflow.config"
127+
includeConfig "../modules/nf-core/gunzip/nextflow.config"
128+
includeConfig "../modules/nf-core/custom/getchromsizes/nextflow.config"
129+
includeConfig "../modules/local/isoquant/gtf2db/nextflow.config"

main.nf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,26 @@ nextflow.enable.dsl = 2
1919
include { DIRECTRNA } from './workflows/directrna'
2020
include { validateParameters } from 'plugin/nf-schema'
2121
include { paramsSummaryLog } from 'plugin/nf-schema'
22+
include { paramsHelp } from 'plugin/nf-schema'
2223

2324
workflow{
2425

2526
//
2627
// nf-scheme validations
2728
//
2829

29-
validateParameters()
30+
// validateParameters()
3031
log.info paramsSummaryLog(workflow)
3132

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

4243
DIRECTRNA ()
4344
}

0 commit comments

Comments
 (0)