Kata Ferenc
05/08/2026, 9:56 AMSlava Sidorov
05/11/2026, 3:49 PMtime nf-test test tests/default.nf.test --updateSnapshot --profile test on a new branch (full-tests) based on dev , using Nextflow v26.04.0 build 12031, and I'm getting loads of "undefined" and "not declared" errors about variables across the pipeline, for example:
Error subworkflows/local/mapped_inputs/main.nf:19:5: `files_in` was assigned but not declared
│ 19 | files_in = row.path
╰ | ^^^^^^^^
Error subworkflows/local/mapped_inputs/main.nf:21:9: `files` is not defined
│ 21 | if (files.size() == 2){
╰ | ^^^^^
Error workflows/cageseq.nf:18:1: Invalid include source: '/mnt/biggley/home/slava/projects/leancage_dev/cageseq/subworkflows/local/parameter_checks/main.nf'
│ 18 | include { PARAMETER_CHECKS } from '../subworkflows/local/parameter_che
╰ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I guess, this is because of the new, strict, Nextflow syntax? What are we doing with this? I can post the full list of these errors if needed.
2. Meanwhile, I'll create and populate the <testname>.nf.test files. In each of these files, shall I put the full list of parameters that we usually use in .yaml files, or just the ones that differ from the default in cageseq/testdata/tests/params_yeast_nfcore_test_star_noindex_wfasta_se_full.yaml? I guess, that's decided by how parameters are set by default in the schema and the pipeline itself, but I'm not sure which way we design these settings now?Slava Sidorov
05/11/2026, 4:14 PMdefault.nf.test , outdir is set to "$outputDir" . Shall I retain this setting in all test files, or shall I give a unique name to outdir in each of them?Kata Ferenc
05/12/2026, 8:57 AMSlava Sidorov
05/18/2026, 2:08 PMSlava Sidorov
05/18/2026, 2:31 PMAssertion failed:
1 of 2 assertions failed
Nextflow stdout:
ERROR ~ No such file or directory: Can't find a matching module file for include: ../subworkflows/local/parameter_checks/main.nf
-- Check script '/mnt/biggley/home/slava/projects/leancage_dev/cageseq/workflows/cageseq.nf' at line: 18 or see '/mnt/biggley/home/slava/projects/leancage_dev/cageseq/.nf-test/tests/645b306bac398833284fed02d9c23737/meta/nextflow.log' file for more details
subworkflows/local/parameter_checks/main.nf does not indeed exist anymore. Do you know what I need to include in /mnt/biggley/home/slava/projects/leancage_dev/cageseq/workflows/cageseq.nf instead?Slava Sidorov
05/18/2026, 2:32 PMfull-tests branch which currently corresponds to dev (I merged dev into full-tests just now).Slava Sidorov
05/18/2026, 4:17 PMcageronly test run:
id,single_end,path,new_name
S1,true,[?/testdata/v2/bigwig/S1.Signal.Unique.str1.out.wig.bw ?/testdata/v2/bigwig/S1.Signal.Unique.str2.out.wig.bw],S1
S2,true,[?/testdata/v2/bigwig/S2.Signal.Unique.str1.out.wig.bw ?/testdata/v2/bigwig/S2.Signal.Unique.str2.out.wig.bw],S2
However, I don't know what to put here instead of ? which should be the location of the test data (our test-datasets repository).mashehu
05/19/2026, 8:00 AMSlava Sidorov
05/19/2026, 9:19 AMSlava Sidorov
05/22/2026, 8:15 AMSlava Sidorov
05/22/2026, 8:16 AMdev into full-tests again and resume testing.Slava Sidorov
05/22/2026, 8:17 AMtest-datasets, I think, the path is right -- I've put the list of samples (bigWigs/BAMs) (which is for the cageronly run) in a separate directory, so that it is not confused with the samplesheet (which is for the full run or maponly).Kata Ferenc
05/26/2026, 9:45 AMKata Ferenc
05/26/2026, 10:43 AMSlava Sidorov
05/26/2026, 2:56 PMSlava Sidorov
05/26/2026, 2:57 PMWARN: The following invalid input values have been detected:
* --markdown_path: /mnt/biggley/home/slava/projects/leancage_dev/cageseq/assets/cager_report.Rmd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Genome 'reproduce_test_data/sacCer3chrIII.fa' not found in any config files provided to the pipeline.
Currently, the available genome keys are:
GRCh37, GRCh38, CHM13, GRCm38, TAIR10, EB2, UMD3.1, WBcel235, CanFam3.1, GRCz10, BDGP6, EquCab2, EB1, Galgal4, Gm01, Mmul_1, IRGSP-1.0, CHIMP2.1.4, Rnor_5.0, Rnor_6.0, R64-1-1, EF2, Sbi1, Sscrofa10.2, AGPv3, hg38, hg19, mm10, bosTau8, ce10, canFam3, danRer10, dm6, equCab2, galGal4, panTro4, rn6, sacCer3, susScr3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~mashehu
05/26/2026, 2:58 PMgenome must be a valid igenomes name, (see the list given in the error). in you case you should be able to leave it blank and just provide fastaSlava Sidorov
05/26/2026, 3:13 PMgenome empty and setting fasta , I'm now getting this one:
WARN: The following invalid input values have been detected:
* --markdown_path: /mnt/biggley/home/slava/projects/leancage_dev/cageseq/assets/cager_report.Rmd
WARN: Found the following unidentified headers in /mnt/biggley/home/slava/projects/leancage_dev/test_samplesheet/samplesheet.csv:
- single_end
Reading in samplesheet
Creating channel from samplesheet
Initializing channels
ERROR ~ Reference genome FASTA file (--genome) or genome index (--index) should be specified.
-- Check '.nextflow.log' file for detailsKata Ferenc
05/26/2026, 3:26 PMKata Ferenc
05/26/2026, 3:27 PMSlava Sidorov
05/26/2026, 3:44 PMSlava Sidorov
05/26/2026, 3:46 PMdev , using the following commit:
$ git log | head -15
commit b40cc0408eba183363b2e59fa86176912b358018
Merge: f3ce065 50ea4d8
Author: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
Date: Tue May 26 17:07:42 2026 +0200
Merge pull request #106 from nf-core/nf-core-template-merge-4.0.2
Important! Template update for nf-core/tools v4.0.2Slava Sidorov
05/26/2026, 3:46 PMKata Ferenc
05/27/2026, 8:09 AMmashehu
05/27/2026, 10:57 AMgenome==fasta confusion in the test_full PR. tried to fix that now.Slava Sidorov
05/28/2026, 8:26 PMtest_full (apparently, I had some unpushed commits on my side), and now it gives the same error as the one described by Kata in the thread above:
-[nf-core/cageseq] Pipeline completed with errors-
WARN: Singularity cache directory has not been defined -- Remote image will be stored in the path: /mnt/scratch/slava/cageseq_test/singularity -- Use the environment variable NXF_SINGULARITY_CACHEDIR to specify a different location
WARN: Input tuple does not match tuple declaration in process `NFCORE_CAGESEQ:CAGESEQ:BAM_STATS_SAMTOOLS:SAMTOOLS_STATS` -- offending value: [sacCer3chrIII, /mnt/biggley/home/slava/projects/leancage_dev/reproduce_test_data/sacCer3chrIII.fa]
ERROR ~ No such variable: task
-- Check script 'cageseq/modules/nf-core/samtools/stats/main.nf' at line: 6 or see '.nextflow.log' file for more details
ERROR ~ Pipeline failed. Please refer to troubleshooting docs for common issues: <https://nf-co.re/docs/running/troubleshooting>
-- Check '.nextflow.log' file for details
(Plus a warning about input and output of the samtools stats module.)Slava Sidorov
05/28/2026, 8:54 PMdev breaks with this:
Reading in samplesheet
Creating channel from samplesheet
Initializing channels
ERROR ~ Reference genome FASTA file (--genome) or genome index (--index) should be specified.
-- Check '.nextflow.log' file for detailsSlava Sidorov
05/28/2026, 9:11 PM# pipeline parameters
fullpipeline: true
maponly: false
cageronly: false
gtf: "reproduce_test_data/sacCer3chrIII.gtf"
# preprocessing parameters
input: "/mnt/biggley/home/slava/projects/leancage_dev/test_samplesheet/samplesheet.csv"
infolder:
outdir: "results_nfcore_standard_samplesheet"
sample_name_fields: 1
genome_name: "sacCer3chrIII"
genome:
fasta: "reproduce_test_data/sacCer3chrIII.fa"
index:
seq_platform: "illumina"
seq_center: false
# whether to take the uniquely mapped only
unique_only: true
# whether to remove reads that do not start with G
remove_non_g: false
# whether to trim G or not
nogtrim: false
# mapper to use
bowtie2: false
# dedup
dedup: false
# CAGEr parameters
cager_sample_file: ../cageseq2_sample_list_test.csv
# datatype: "bam" or "bigwig". if bowtie2 is used, it will be set to bam
datatype: "bigwig"
# BSgenome
forgeseed:
sourcedir:
bsgenome: "reproduce_test_data/BSgenome.sacCer3ChrIII.Test.sacCer3ChrIII_1.0.tar.gz"
# parameter for correlation calculation
corrplot_tagCountThreshold: 1
# parameters for normalization
norm_range_min: 5
norm_range_max: 10000
norm_method: "powerLaw"
alpha:
t_norm: 1000000
# parameters for tag clustering
sample_num_thr: 2 # 1
ctss_thr: 3 # 1
distclu_maxDist: 20
keepSingletonsAbove: 1
iq_low: 0.1
iq_high: 0.9
# plotting for tagclusters QC
iqw_tpm_threshold: 3
tssregion_up: -3000
tssregion_down: 3000
tsslogo_upstream: 35
# parameters for consensus clusters
consensus_thr: 2
consensus_dist: 20
# parameters for enhancer calling
cfBalanceThreshold: 0.65 # 0.95
unexpressed: 0
minSamples: 0Slava Sidorov
06/01/2026, 11:21 AM