Charles Plessy
05/09/2025, 12:50 AMnf-core pipelines lint on my #C06TRU74N4D pipeline, and I have lines like this:
│ pairalign_m2m │ subworkflows/local/pairalign_m2m/main.nf │ Included component 'ALIGNMENT_TRAIN' versions are not added in <http://main.nf|main.nf>
However, the versions channel information is properly collected.
$ grep -C5 ALIGNMENT_TRAIN subworkflows/local/pairalign_m2o/main.nf
include { LAST_DOTPLOT as ALIGNMENT_DOTPLOT_O2O } from '../../../modules/nf-core/last/dotplot/main'
include { LAST_DOTPLOT as ALIGNMENT_DOTPLOT_O2O_FLT } from '../../../modules/nf-core/last/dotplot/main'
include { LAST_LASTAL as ALIGNMENT_LASTAL_M2O } from '../../../modules/nf-core/last/lastal/main'
include { LAST_LASTDB as ALIGNMENT_LASTDB } from '../../../modules/nf-core/last/lastdb/main'
include { LAST_SPLIT as ALIGNMENT_SPLIT_O2O } from '../../../modules/nf-core/last/split/main'
include { LAST_TRAIN as ALIGNMENT_TRAIN } from '../../../modules/nf-core/last/train/main'
(…)
versions = Channel.empty()
.mix( ALIGNMENT_LASTDB.out.versions)
.mix( ALIGNMENT_TRAIN.out.versions)
.mix( ALIGNMENT_LASTAL_M2O.out.versions)
.mix( ALIGNMENT_SPLIT_O2O.out.versions)
.mix(ALIGNMENT_DOTPLOT_O2O.out.versions)
}
How do I solve the lint warning?Sameesh Kher
05/09/2025, 1:23 AMnf-core subworkflows create command generates a template that has version channel update code just after the module use code snippet.Charles Plessy
05/09/2025, 1:53 AMCharles Plessy
05/09/2025, 1:55 AMinclude { LAST_DOTPLOT as ALIGNMENT_DOTPLOT_M2M } from '../../../modules/nf-core/last/dotplot/main'
include { LAST_DOTPLOT as ALIGNMENT_DOTPLOT_M2M_FLT } from '../../../modules/nf-core/last/dotplot/main'
and this warning, because I only collect version number for ALIGNMENT_DOTPLOT_M2M…
│ pairalign_m2m │ subworkflows/local/pairalign_m2m/main.nf │ Included component 'ALIGNMENT_DOTPLOT_M2M_FLT' versions are not added in <http://main.nf|main.nf> │Sameesh Kher
05/09/2025, 9:57 AMCharles Plessy
05/09/2025, 11:50 AMfirst() like in the subworkflow template. Shall I remove these when it suppresses warnings? Example:
ch_versions.mix(ALIGNMENT_LASTDB.out.versions.first()Sameesh Kher
05/09/2025, 11:55 AMfirst() can be removed