-
Notifications
You must be signed in to change notification settings - Fork 6
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
Dev #89
Dev #89
Conversation
|
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.
Hi @jianhong, are you sure you updated the template using nf-core/tools v2.9? Some of the changes seem outdated.
@mirpedrol Thank you for the quick response. I pulled upstream template and merged by
And then fixed the collision. Did I missed anything? |
That should work. I was looking at it again, and it might be due to some merge conflicts you had, for example you define the |
Thank you for point that out. I removed the duplicated lines. |
subworkflows/local/input_check.nf
Outdated
.csv | ||
.splitCsv ( header:true, sep:',' ) | ||
.map { create_fastq_channel(it) } | ||
Channel.fromSamplesheet("input") |
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 is working fine, so my comment is only a suggestion. You can remove the whole input_check
subworkflow by creating the input channel in the main script. If you want to see an example, rnaseq has a PR with these changes.
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 tried but I have trouble in appending the meta.id by map with pseudo-code:
.map{
meta, fq1, fq2 ->
meta.id = meta.group + "_REP" + meta.replicate + "_T" + meta.techniquerep // I have trouble here
[meta, [fq1, fq2]]
}
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 is modifying the meta map in place, which can lead to errors in the pipeline. An alternative is using the operators +
or -
which create a copy of the object instead.
meta - meta.subMap('id') + [id: meta.group + "_REP" + meta.replicate + "_T" + meta.techniquerep
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 removed the input_check.nf. Could you please take a second look?
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.
LGTM
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.
Some last comments, after these changes looks good to me :)
if (!params.gtf && !params.gff) { | ||
Nextflow.error("No GTF or GFF3 annotation specified! The pipeline requires at least one of these files.") |
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.
Do you have params.gtf
and params.gff
? I can't see them in nextflow.config
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.
They are appended the main.nf.
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.
Oh I see, then looks good :)
workflows/hicar.nf
Outdated
meta.group = meta.group.toString().replaceAll("\\.", "_") | ||
meta - meta.subMap(['id', 'single_end']) + [id: meta.group + "_REP" + meta.replicate + "_T" + meta.techniquereplicate, single_end: false] |
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.
meta.group = meta.group.toString().replaceAll("\\.", "_") | |
meta - meta.subMap(['id', 'single_end']) + [id: meta.group + "_REP" + meta.replicate + "_T" + meta.techniquereplicate, single_end: false] | |
meta.group = meta.group.toString().replaceAll("\\.", "_") | |
meta - meta.subMap(['id', 'single_end', 'group']) + [id: meta.group + "_REP" + meta.replicate + "_T" + meta.techniquereplicate, single_end: false, 'group': meta.group.toString().replaceAll("\\.", "_")] |
PR checklist
nf-core lint
).nextflow run . -profile 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).