Skip to content
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

Merged
merged 10 commits into from
Mar 3, 2022
Merged

Housekeeping #492

merged 10 commits into from
Mar 3, 2022

Conversation

FriederikeHanssen
Copy link
Contributor

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
    • If you've added a new tool - add to the software_versions process and a regex to scrape_software_versions.py
    • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
    • If necessary, also make a PR on the nf-core/sarek branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint .).
  • Ensure the test suite passes (nextflow run . -profile test,docker).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).


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"
Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Member

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

Copy link
Contributor Author

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 😆

Copy link
Member

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?

Copy link
Member

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

Copy link
Contributor Author

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

Copy link
Member

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

@FriederikeHanssen FriederikeHanssen marked this pull request as ready for review March 3, 2022 10:57
@maxulysse maxulysse self-requested a review March 3, 2022 12:23
@FriederikeHanssen FriederikeHanssen merged commit 5f8c265 into nf-core:dev Mar 3, 2022
@github-actions
Copy link

github-actions bot commented Mar 3, 2022

Markdown linting is failing

To keep the code consistent with lots of contributors, we run automated code consistency checks.
To fix this CI test, please run:

  • Install markdownlint-cli
  • Fix the markdown errors
    • Automatically: markdownlint . --fix
    • Manually resolve anything left from markdownlint .

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!

@FriederikeHanssen FriederikeHanssen deleted the housekeeping branch July 10, 2023 19:00
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.

2 participants