(largely inspired by the CONTRIBUTING.md from nipype project)
Welcome to Macapype! We are excited to have you contribute to our open-source project for non-human primate anatomical MRI processing pipelines.
These guidelines provide a quick start on how to report issues, contribute code, and submit Pull Requests (PRs).
To contribute to Macapype on GitHub:
- Create a GitHub account: If you do not have one, sign up for a free account at github.com/join.
- Set up Git: Ensure Git is installed and configured on your machine with your name and email address.
Before opening a new issue, check existing open issues on Macapype Issues to avoid duplicates. When opening an issue, please use one of the primary labels below:
Use this label for pipeline crashes, unexpected errors, or incorrect image processing outputs.
- What to include:
- Operating system, Python version, Macapype version, and relevant underlying software (e.g., Nipype, AFNI, ANTs, FSL, SPM).
- A minimal reproducible script or command line call.
- Full error tracebacks.
- Images & Screenshots: Attach visual artifacts, failed brain masks/segmentations, or Quality Control (QC) output images to illustrate the defect.
Use this label to request new pipelines, support for additional neuroimaging packages, or enhancements to existing workflows.
- What to include:
- Clear explanation of the feature and its scientific or operational benefit.
- Expected input/output specifications.
- Diagrams & Visuals: Attach workflow flowcharts, node diagrams, or target output images where applicable.
Use this label to report typos, missing docstrings, unclear installation steps, or request new tutorials.
- What to include:
- Link or file location of the relevant documentation page.
- Suggested revisions or additions.
- Screenshots: Attach screenshots showing rendering or formatting errors if applicable.
- Fork the Macatools/macapype repository to your GitHub profile by clicking Fork.
- Clone your fork to your local environment:
git clone https://github.com/<your-username>/macapype.git cd macapype
- Set up the upstream repository reference:
git remote add upstream https://github.com/Macatools/macapype.git
Always base your work on the latest state of the default main branch:
git fetch upstream git checkout main git merge upstream/main git checkout -b my-feature-branch
- Implement your edits, bug fixes, or documentation updates.
- Ensure code follows standard Python (PEP8) formatting.
- Test your changes locally to confirm existing pipelines remain functional.
Commit your changes with clear, descriptive commit messages:
git add . git commit -m "FIX: Correct brain extraction node behavior" git push origin my-feature-branch
- Go to Macatools/macapype Pull Requests and click New Pull Request.
- Select
my-feature-branchfrom your fork to merge intoMacatools/macapype:main. - Add a descriptive title with standard prefixes:
[FIX]Bug fix[ENH]Enhancement / Feature[DOC]Documentation update
- Link to a previously created issue: In the PR description, reference the issue using keywords so GitHub automatically closes it when merged:
- Examples:
Fixes #320,Closes #123, orResolves #320.
- Examples:
Thank you for helping improve Macapype!