Skip to content

Merge requests

Matthieu Muffato edited this page May 9, 2022 · 24 revisions

Before making a pull request, make sure your module adheres to nf-core's new module guidelines which we follow too. For any questions, concerns or issues, please message either Matthieu (mm49) or Priyanka (ps22).

⚠️ All commands below assume you're in the nf-core-modules directory

  1. Linting
nf-core modules lint <software/tool> --dir .

Repeat the above command till you have all errors resolved.

  1. Testing
TMPDIR=~ PROFILE=singularity pytest --tag <software/tool> --symlink --keep-workflow-wd --git-aware
  1. Staging
git add ./modules/<software_tool> ./tests/modules/<software_tool> ./tests/config/pytest_modules.yml
  1. Commit changes
git commit -m "Adding module for <software/tool>. Closes #<issue_number>."
  1. Push changes
git push -u origin <software_tool>
  1. Create a pull-request (PR)
  • Go to https://github.com/sanger-tol/nf-core-modules/compare
  • Set base branch to sanger-tol/nf-core-modules:main
  • Set compare to sanger-tol/nf-core-modules:<software_tool>
  • Click on "Create pull request"
  • Fill out the template. Please check all boxes that apply, it helps with the review. Fill in Closes #XXX, it helps with automation.

Comparing changes

  1. Internal review

The review process is a back and forth collaborative exercise. Once complete, your PR is merged and the issue is closed.


Going through the PR review in nf-core is a personal choice. But creating the PR in nf-core/modules (1) ensures you get the credit if this module is further developed, and (2) helps ensuring that the module that ends up in nf-core is aligned to ours (e.g. input and output names). It's also the way of contributing to a community that helps us out by providing tooling and modules.

  1. Create an issue for a new module

Go to nf-core/modules

  1. Create a new PR for nf-core/modules
  • Go to https://github.com/nf-core/modules/compare

  • Click compare across forks

  • Set base branch to nf-core/modules:master

  • Set compare to sanger-tol/nf-core-modules:<software_tool>

  • Click on the arrow next to "Create pull request" and select "Create draft pull request"

    Screenshot 2022-05-09 at 12 33 37
  • Fill out the template. Please check all boxes that apply and fill in Closes #XXX.

  1. Review
Clone this wiki locally