Official binary distributions of the Martian toolchain are available for Linux. We hope to have MacOS and Windows support soon.
- Currently, running pipelines requires a Linux system with kernel version 2.6.23 or later.
- Linux versions as far back as RHEL/CentOS 5.5 or Ubuntu 10 have been confirmed working.
- Future updates may drop support for anything older than RHEL/CentOS 6 or Ubuntu 12.
- For the time being,
mrponly functions on Linux.
- Ancillary tools such as
mrfare expected to work on MacOS.
- Martian was designed for large bioinformatics pipelines. One may run into issues on systems with less than 6GB of available memory. Editing
jobmanagers/config.jsonto reduce the default memory request for jobs may alleviate some of those issues.
Building from Source
- Go 1.11 or higher is required to build Martian.
- The Python adapter for wrapping stage code requires Python 2.7. Python 3 support is present in the current master branch, and will be released with version 3.2.
- To build the user interface, Node 6 or higher is required, along with NPM.
Building the source
To build the Martian toolchain from source, clone the Martian GitHub repository, run
make all, and the compiled binaries will be generated in
$ git clone --recursive https://github.com/martian-lang/martian.git $ cd martian $ make all $ ls bin mrc mrf mrg mrjob mrp mrstat
To test that everything is working,
make longtests runs a few simple test pipelines
and verifies that their output is correct, including test that pipeline failures are
Alternatively, you can use
$ go get github.com/martian-lang/martian/cmd/... $ go generate github.com/martian-lang/martian/... $ go install github.com/martian-lang/martian/cmd/...
However you’ll still need to run
make web in the repository directory in
order to build the web UI.
The Martian toolchain comprises five core executables:
||Compiler/Checker||Parses and validates Martian code|
||Formatter||Canonicalizes Martian code formatting and whitespace|
||Pipeline Runtime||Executes a Martian pipeline or stage.|
||Stage wrapper||Wraps user stage code, ensuring it obeys the contracts
Make these executables available on your
PATH and then confirm that you can run them. If you unpacked or cloned Martian into
/home/user/git/martian, for example, then:
$ export PATH=$PATH:/home/user/git/martian/bin $ mrc --version v2.3.0-rc0.1
Martian Project Path – MROPATH
The code for a Martian pipeline project typically lives under a single directory. Set
MROPATH to this directory to allow the Martian executables to find the project code without the need for absolute paths.
When developing multiple projects, switch between them by changing
To give you an idea of how a Martian project looks in practice, here’s an example:
martian_project/ bin/ hello_go hello_rust lib/ go/ vendor/github.com/martian-lang/martian src/martian/adapter/adapter.go src/ hello_go.go rust/ Cargo.lock Cargo.toml src/ hello_rust.rs mro/ _hello_stages.mro hello.mro stages/ hello/ hello_py/ __init__.py