If you'd like to make changes to Qurro's codebase, then first off -- thanks a ton! This document describes (briefly) how you'd go about doing this.
Note that these are very in-progress instructions. If you have any questions on things that were missed/unclear here, feel free to file an issue in this repository or email the Qurro development team (mfedarko@ucsd.edu).
- Fork Qurro.
- Clone your fork of Qurro's source code to your computer.
- Create a development conda environment for Qurro:
- Install the latest version of QIIME 2 natively, as you would normally.
- In a terminal, navigate to the folder to which you cloned your fork of
Qurro's source code above. Run
pip install -e .[dev]
inside this folder to install Qurro along with its normal and development Python dependencies. - Install songbird using
conda install -c conda-forge songbird
. This is required to get QIIME 2 to recognize theFeatureData[Differential]
type (note that this is a temporary requirement, and should be unnecessary after QIIME 2 version 2019.7 is released). - Install the various Node.js requirements for testing Qurro's JavaScript
code. This can be done by running
npm install -g mocha-headless-chrome jshint prettier nyc
. Note that this will install these programs globally on your system.
- Run the following commands to verify everything was installed correctly:
qiime dev refresh-cache
make test
make stylecheck
If these commands succeed, then you can start making changes to Qurro.
You should check that 1) all the tests pass (i.e. make test
succeeds),
and 2) the code is properly formatted (i.e. make stylecheck
succeeds). If
you'd like to fix the code's formatting automatically, you can just run
make style
(some code might require a slight bit of manual tweaking
afterwards to get things working).
This document was loosely based on Emperor's CONTRIBUTING.md file.