update local modules to nf-core structure#89
Conversation
ferenckata
left a comment
There was a problem hiding this comment.
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!
| } | ||
| process { | ||
| """ | ||
| input[0] = file("${projectDir}/modules/local/cager/report/tests/fixtures/dummy.Rmd") |
| */ | ||
|
|
||
| params { | ||
| pipelines_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/refs/heads/customcage/' |
There was a problem hiding this comment.
this should change to cageseq/v2, right?
There was a problem hiding this comment.
yup, at least this path breaks at the moment
|
|
||
| setup { | ||
| run("GTF2TXDB") { | ||
| script "modules/local/gtf2txdb/main.nf" |
There was a problem hiding this comment.
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
|
we can use https://nf-co.re/docs/tutorials/nf-core_components/using_seqera_containers for cager container |
| } | ||
| }, | ||
| "required": ["gtf", "genome"] | ||
| "required": ["gtf"] |
|
@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? |
# Conflicts: # conf/base.config
move script to template and move all logic into the script
…latest template version
5973c23 to
b1276b3
Compare
|
@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? |
| ch_fasta = ch_genome_name.combine(ch_pre_fa) | ||
| ch_index = channel.empty() | ||
| } else { | ||
| ch_fasta = channel.empty() |
There was a problem hiding this comment.
fail if ch_fasta is empty, because we need it for chromosome size
| } else { | ||
| ch_fasta = channel.empty() | ||
| } | ||
| } else if (params.genome) { |
There was a problem hiding this comment.
in the nextflow_schema.json require either genome or fasta to be present
77abe02 to
f7f8d45
Compare
(cherry picked from commit 88774ac08b8ca77fcab7de2ac349777dedf6d0d1)
adb205b to
151e4a2
Compare
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).