Hi, I’m having weird issues with `nf-schema` and ...
# nf-schema
o
Hi, I’m having weird issues with
nf-schema
and the
utils_nfschema_plugin
subworkflow when running nf-core/genomeannotation. First, I had the issue:
Copy code
ERROR ~ Ambiguous method overloading for method nextflow.validation.summary.SummaryCreator#maybeMask.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
	[interface java.lang.CharSequence]
	[interface java.nio.file.Path]

 -- Check script 'subworkflows/nf-core/utils_nfschema_plugin/main.nf' at line: 59 or see '.nextflow.log' file for more details
when using
nf-schema=2.7.3
, that I solved by downgrading to
nf-schema=2.7.2
. But now, the pipeline hangs between 4 and 10 minutes at:
Copy code
nextflow run main.nf -profile apptainer,test --outdir results/test

 N E X T F L O W   ~  version 26.10.6

Launching `main.nf` [shrivelled_linnaeus] revision: 0cf3be6f95

WARN: Type checking found 151 error(s) -- run `nextflow lint` to inspect them

------------------------------------------------------
                                        ,--./,-.
        ___     __   __   __   ___     /,-._.--~'
  |\ | |__  __ /  ` /  \ |__) |__         }  {
  | \| |       \__, \__/ |  \ |___     \`-._,-`-,
                                        `._,._,'
  nf-core/genomeannotation 1.0.0dev
------------------------------------------------------

Input/output options
  input                     : tests/test_data/samplesheets/test.yaml
  outdir                    : results/test

Options for detection of repeated elements / genome masking
  genome_masker             : red

General options for RNA-seq reads
  skip_umi_extract          : true

Options for fetching RNAseq data from NCBI SRA
  sra_max_size              : null
  sra_allow_single_end      : true
  read_sampling_size        : null

Options for building custom protein database
  orthodb_version           : odb13
  mmseqs_db                 : UniRef50
  min_prot_db_seq_length    : 1

Options for functional annotation
  interproscan5_db_url      : http://ftp.ebi.ac.uk/pub/software/unix/iprscan/5/5.78-109.0/interproscan-5.78-109.0-64-bit.tar.gz

Options for quality control
  omamer_db_url             : https://omabrowser.org/All/LUCA.h5

Generic options
  trace_report_suffix       : 2026-11-19_11-33-29

Institutional config options
  config_profile_name       : Test profile
  config_profile_description: Minimal test dataset to check pipeline function

Core Nextflow options
  runName                   : shrivelled_linnaeus
  containerEngine           : apptainer
  launchDir                 : /home/olivier/repositories/genomeannotation
  workDir                   : /home/olivier/repositories/genomeannotation/work
  projectDir                : /home/olivier/repositories/genomeannotation
  userName                  : olivier
  profile                   : apptainer,test
  configFiles               : /home/olivier/repositories/genomeannotation/nextflow.config

!! Only displaying parameters that differ from the pipeline defaults !!
------------------------------------------------------

* The nf-core framework
    https://doi.org/10.1038/s41587-020-0439-x

* Software dependencies
    https://github.com/nf-core/genomeannotation/blob/main/CITATIONS.md
If I check in
nextflow.log
, the last debug logs are:
Copy code
nov.-19 11:39:38.039 [main] DEBUG n.v.parameters.ParameterValidator - Starting parameters validation
nov.-19 11:39:38.140 [main] DEBUG n.v.v.evaluators.SchemaEvaluator - Started validating /home/olivier/repositories/genomeannotation/tests/test_data/samplesheets/test.yaml
If a param that I’m supplying displays an error, it eventually raises the expected error after ~4 or 5 minutes... But if all params all good, it goes up to ~9 or 10 minutes to start the run 😮 By debug-printing /commenting parts of code in
subworkflows/local/utils_nfcore_genomeannotator_pipeline/main.nf
, I saw that there are two culprits: •
validateParameters
•
samplesheetToList
which explains why it takes twice as much time when params are valid (since we go through both functions instead of
validateParameters
alone) Unfortunately, upgrading to
nf-schema=3.1.0
(and changing
log.info paramsSummaryLog(summary_options, input_workflow)
to
log.info paramsSummaryLog()
in
subworkflows/nf-core/utils_nfschema_plugin/main.nf
) does not solve the problem... Strangely, the code of this pipeline was working very well up to ~ 2 weeks ago. But even if I checkout to previous commits where it was working like a charm, it now shows the same hanging.., which suggests that there may be issues with some http requests inside
validateParameters
/
samplesheetToList
... Do you have a solution for that? I’m using: • Nextflow version 26.10.6 (the same happens with 26.10.4) • Ubuntu 24.04.1 • openjdk 25.0.5.1 (tried with 17.0.20 and it’s the same) Thanks a lot
OK, actually I figured out what is the issue... It comes from my samplesheet itself, where a bam file is provided as an URL. There seems to be issues with the server hosting this bam file. The thing is I did not know that
nf-schema
was somehow staging the files given as URLs ^^ Sorry for the inconvenience
s
It checks whether the input files actually exist (which is useful), shouldn’t need it to download the whole thing though
👍 1
o
Absolutely