Skip to content

update local modules to nf-core structure#89

Merged
mashehu merged 18 commits intonf-core:devfrom
mashehu:move-closer-to-nf-core
May 4, 2026
Merged

update local modules to nf-core structure#89
mashehu merged 18 commits intonf-core:devfrom
mashehu:move-closer-to-nf-core

Conversation

@mashehu
Copy link
Copy Markdown
Contributor

@mashehu mashehu commented Feb 19, 2026

continuation of #87

mainly doing a partial template update and converting the local modules to an nf-core structure (mainly adding an environment.yml and full container syntax to allow conda, docker and singularity, as well as tests, where possible).

Copy link
Copy Markdown

@ferenckata ferenckata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, I didn't notice this PR before sorry for that. Nice work!

The latest CAGEr release includes changes we need, I am not sure how hard is it to make a container with it. Last time I made the container from dev, I assume that since then bioconductor should have released their latest container (3.22) which includes the necessary changes in CAGEr.

I see that I had a bit of a misunderstanding with the usage of "genome", so that's nice to have fixed.

I also see that the nf-core way of including scripts is neat, but the many parameters can get confusing and it would be nice to add docs to each module about these too.

I think that was basically all I caught. Very nice to have nf-tests, thanks again!

Comment thread modules/local/cager/processing/templates/cager_processing.R
Comment thread modules/local/cager/processing/tests/main.nf.test Outdated
}
process {
"""
input[0] = file("${projectDir}/modules/local/cager/report/tests/fixtures/dummy.Rmd")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we leave this and the rds empty?

*/

params {
pipelines_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/customcage/'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should change to cageseq/v2, right?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, at least this path breaks at the moment


setup {
run("GTF2TXDB") {
script "modules/local/gtf2txdb/main.nf"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this has been ran already, we could upload an example txdb file instead. Unless this is like this to keep the dependencies between tests intact

Comment thread modules/local/cager/tagcluster_qc/main.nf Outdated
Comment thread subworkflows/local/prepare_mapping_metadata/main.nf
Comment thread subworkflows/local/utils_nfcore_cageseq_pipeline/main.nf
Comment thread subworkflows/local/utils_nfcore_cageseq_pipeline/main.nf
Comment thread nextflow_schema.json Outdated
@mashehu
Copy link
Copy Markdown
Contributor Author

mashehu commented Mar 4, 2026

@mashehu mashehu marked this pull request as draft March 4, 2026 11:09
Comment thread nextflow_schema.json
}
},
"required": ["gtf", "genome"]
"required": ["gtf"]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add fasta, otherwise it breaks

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or genome

@mashehu mashehu linked an issue Mar 19, 2026 that may be closed by this pull request
4 tasks
@mashehu mashehu added this to the 2.0.0 milestone Mar 19, 2026
@ferenckata
Copy link
Copy Markdown

@mashehu I see that this is towards the nf-test-and-fix-dev branch. I can merge dev into that branch if that's ok?

@mashehu mashehu changed the base branch from nf-test-and-fix-dev to dev March 24, 2026 19:28
@mashehu mashehu force-pushed the move-closer-to-nf-core branch from 5973c23 to b1276b3 Compare March 26, 2026 14:27
@ferenckata
Copy link
Copy Markdown

@mashehu I committed some local changes, which were supposed to be only adding annotations for inputs, but it seems to be way more, but mostly updates which should have been there already. I hope I didn't revert back changes. Can you check?

Comment thread workflows/cageseq.nf Outdated
ch_fasta = ch_genome_name.combine(ch_pre_fa)
ch_index = channel.empty()
} else {
ch_fasta = channel.empty()
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fail if ch_fasta is empty, because we need it for chromosome size

Comment thread workflows/cageseq.nf Outdated
} else {
ch_fasta = channel.empty()
}
} else if (params.genome) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the nextflow_schema.json require either genome or fasta to be present

@mashehu mashehu force-pushed the move-closer-to-nf-core branch from 77abe02 to f7f8d45 Compare May 4, 2026 10:33
mashehu added 2 commits May 4, 2026 16:32
(cherry picked from commit 88774ac08b8ca77fcab7de2ac349777dedf6d0d1)
@mashehu mashehu force-pushed the move-closer-to-nf-core branch from adb205b to 151e4a2 Compare May 4, 2026 14:38
@mashehu mashehu marked this pull request as ready for review May 4, 2026 14:39
@mashehu mashehu merged commit 3291915 into nf-core:dev May 4, 2026
3 of 4 checks passed
@mashehu mashehu deleted the move-closer-to-nf-core branch May 4, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate local modules to nf-core template

2 participants