-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating workflow files to work with Igenome #388
Conversation
|
65d5b4c
to
10b88c6
Compare
d83bf81
to
10b88c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments to the code that can be addressed in this same PR or in other, if you think that is better.
The test case for this PR could be this issue: #359 which I think your solution addressed. We can add a simple nf-test that checks the presence of mirdeep2
files when using genome as input.
params.fasta, | ||
params.mirtrace_species, | ||
params.bowtie_index, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. I thought these had to be defined in the PIPELINE_INITIALISATION
and the outputs from PIPELINE_INITIALISATION
have to be passed to the main workflow. See:
https://github.com/nf-core/taxprofiler/blob/5d3ee5513a84f92773c8376c55b5f4da39835307/main.nf#L74-L91
or
https://github.com/nf-core/phaseimpute/blob/f2823b024800155cd87d70f406794324c4123dfd/main.nf#L140-L151
but I see sarek and rnaseq have different approaches as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll leave it as it is, as we discussed, since there doesn't seem to be a standard for how to set up the new template, we can always change it later if we have a reason to do so
workflows/smrnaseq.nf
Outdated
ch_reads_for_mirna = FASTQ_FASTQC_UMITOOLS_FASTP.out.reads | ||
|
||
// even if bowtie index is specified, there still needs to be a fasta. | ||
// without fasta, no genome analysis. | ||
if(params.fasta) { | ||
if(fasta) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps since we are changing this for all fasta, we could adhere to adding the ch_ prefix:
"2.5 Input channel name structure
Input channel names SHOULD signify the input object type. For example, a single value input channel will be prefixed with val_, whereas input channels with multiple elements (e.g. meta map + file) should be prefixed with ch_."
https://nf-co.re/docs/guidelines/components/subworkflows
If this breaks things or you think it is too complicated we can open a new issue and address it separately.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I originally tackled this issue by converting value variables to value channels, and converting file string variables to path channels, but it created a lot of issues downstream. I want to tackle the conversion of all of these variables into channels in #390. To make sure that these are the only changes implemented in the branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this fasta variable is just equal to params.fasta, so I will convert it to val_fasta
workflows/smrnaseq.nf
Outdated
@@ -181,8 +184,8 @@ workflow NFCORE_SMRNASEQ { | |||
// | |||
// SUBWORKFLOW: MIRTRACE | |||
// | |||
if (params.mirtrace_species) { | |||
MIRTRACE(ch_mirtrace_inputs) | |||
if (mirtrace_species) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment as before, perhaps adding val_
before this channel name.
I think we can tackle the upstream points in two stages - lets update here already to match what @atrigila mentioned in terms of recommendations ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok with the changes, would also go for changing the ch_ and val_ prefixes where necessary.
eb05af3
to
aff93c1
Compare
aff93c1
to
7d534cd
Compare
Ill look at this separately |
PR checklist
nf-core lint
).nf-test test main.nf.test -profile test,docker
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).