-
Notifications
You must be signed in to change notification settings - Fork 417
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
Housekeeping #492
Housekeeping #492
Conversation
|
||
when: | ||
task.ext.when == null || task.ext.when | ||
|
||
script: | ||
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
def prefix = task.ext.prefix ?: "${meta.id}.bigWig" |
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 don't think the .bigWig
should be here, I think it was better with it on the script part.
But this is probably an issue to report in the modules repo
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.
hm this is the default file ending I choose. apaprently the tool infers whether it is a bedgraph or bigwig file based on file ending provided. I iwll check again if there is a default the tool sets itself
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.
Any case, this issue should be resolved on the modules repo, not here, but I can make an issue there so we don't forget if you'd like
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.
but then given your answer, and how you already wrote the modules, I would definitively remove the .bigWig
part from the whole module and only have that as a prefix and test with both bedgraph and bigwig
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 sure, my thought there was that we have other modules where a prefix is not mandatory. But am happy to have it mandatory here then. not a hill i am going to die on 😆
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 you would want that as an 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.
maybe definitively we should start a PR for this modules and discuss it with more people.
I'd be happy to die on another hill that this one too
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.
sure sounds good. It would just need to be set in the modules.config
under prefix
always and thats it. The documentation is not super clear though on what a default value would be. There is also another parameter that can be used to set the output file format. Maybe there could be weird effects, like setting --outputfileformat
in args
but then not having the corresponding ending in prefix
🤔
ok...yes the more I write about it, the more I am sure it could use some more thought
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'm guessing we don't have json args validation yet for modules
Markdown linting is failingTo keep the code consistent with lots of contributors, we run automated code consistency checks.
Once you push these changes the test should pass, and you can hide this comment 👍 We highly recommend setting up markdownlint in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help! Thanks again for your contribution! |
PR checklist
scrape_software_versions.py
nf-core lint .
).nextflow run . -profile test,docker
).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).