Martian was originally created at 10x Genomics. We are excited to now invite the community to contribute to its development!
Martian is released under the MIT License. By contributing to the project, including but not limited to contributions made through issues and pull requests, you are agreeing to release any intellectual property contained in those contributions under the same terms. We cannot accept contributions which impose other licensing terms on the project.
Martian is intended to run primarily on x86_64 Linux platforms. We target
support for running on the most recent patch versions of CentOS 7 or
greater and Ubuntu 14 or greater.
Martian should be possible to build on both macOS and Windows.
MRO writing tools such as mro should work.
We would also like mrp to be able to run pipelines on those other operating
systems or architectures, but due to various differences between Linux and
these other operating systems, this has become increasingly challenging.
We would welcome contributions from the community to enable support for running
pipelines on Windows or macOS.
Martian is written primarily in Go. Go's release policy specifies that only the most recent point revision is supported. We do not expect Martian to necessarily build with unsupported versions of Go.
The Martian Python adapter is written for Python 3.6 or higher.
The web user interface is built using Node 16, which is the most recent LTS version. Any fixes for newer versions are welcome, so long as they are backwards compatible.
For the open source Martian repository, only the most recent (non-rc)
release is supported.
Development happens on the master branch, and the intent is for the master branch to always be in a "releasable" state. Features will not be back-ported to previous release branches. Pull requests for bug fixes may be cherry-picked to a previous release branches in some circumstances, but the normal action would be to create a new release off of master.
Open source Martian is a community project and is not officially supported by 10x Genomics. If you are running a 10x Genomics pipeline, please only use the released, validated version of Martian that is bundled with that pipeline.
Before submitting a bug, check to make sure it is not a duplicate of an existing issue. Also, check the documentation to ensure your environment is set up correctly. Also, verify that your repository is up to date, including submodules, in case the issue was already fixed.
For issues with mrp, see if you can reproduce the issue
with a known-working pipeline (such as the ones in the test/
directory or a released 10x pipeline). If an [id].mri.tgz was produced, include
that if possible (keeping in mind that GitHub issues are public. Make sure you
are not uploading anything you don't want the world to see!).
Local mode and cluster mode with SGE are expected to work in most configurations. Other cluster managers are less well tested, but we would love to see contributions to improve support for them.
For issues with documentation, please file them in the documentation repository.
We use normal GitHub pull requests for patches. Before sending a pull request, please do the following:
- Make sure there is a bug or feature request associated with your change, and mention it in the pull request description. This allows for a separation between discussion of what should be added or fixed and how it is implemented.
- For new features, allow for a discussion on the issue so that everyone can get on board with the feature design and point out any potential pitfalls before going to the work of implementing it.
- For bug fixes, if possible create a unit test case which reproduces the bug so that we can prevent regressions.
- Make sure your change is based on the current
masterbranch HEAD revision. Patches to previous releases are accepted, but our normal process is to fix on master and cherry-pick to the release branch. - For Go code, make sure it is run through
gofmtandgo vet. For python code, usepyformatandpylintbefore submitting. These tools prevent distracting churn in formatting and provide a first line of defense against error-prone code. - Ideally, write a unit test or integration test to cover your new code. Test coverage is very light right now, but we would like to improve it. Test-only pull requests are very welcome!
- Make sure your change builds and passes the basic integration tests. Run
make && make longtests. - Wait for a reviewer to be assigned to the pull request. Please be patient as the development team has many priorities to balance.
- Complete the review process. This may require some back and forth with the reviewer. Depending on how long this takes, it may be necessary to periodically merge changes from master into the pull request branch.
Martian is under active development internally, so many things you might want are already planned! See the roadmap for our current plans. That said, we have limited resources, and your favorite feature request might not be something we can prioritize. Pull requests are especially welcome for the following:
- Cluster mode improvements, particularly on non-SGE clusters. We have an
SGE cluster, but we do not yet have a Slurm or LSF cluster to test on. Those
cluster managers are increasing in popularity, so we'd love to see improvements
to support for them, or other cluster managers which we haven't heard of. In
particular, additions or improvements to the
jobmanagers/config.jsonand template examples, or implementation of queue-querying scripts likesge_queue.pyfor other cluster types. - Support for more stage code languages. For compiled languages other than Go, it's best to keep those in a separate repository as we did for Rust, since they cannot and should not be tightly coupled to a specific version of Martian. For scripting languages such as Python, however, a front-end wrapper adapter may simplify stage code development. Be sure to include additions to the mro lexer and grammar to support the new mode. Be sure to read the API documentation before implementing an adapter.
- Improvements for Python 3 compatibility are welcome. We've done no testing at all with Python 3.
- Editor support for mro. Currently we have editor plugins for Vim, Atom, and Sublime editors.