Skip to content

Latest commit

 

History

History
115 lines (76 loc) · 2.62 KB

Dev.md

File metadata and controls

115 lines (76 loc) · 2.62 KB

OSX Local Dev Notes

Requirements for Unittests

Setup

DB Setup

Explicitly set PGDATA and PGPORT in .bashrc or .bash_profile. Also add path to psql to PATH

export PGPORT=5432
export PGDATA='/Users/mkocher/Library/Application Support/Postgres/var-9.6'
export PATH="/Applications/Postgres.app/Contents/Versions/9.6/bin:$PATH"

make db-reset-test
make db-reset-prod

Running/Compiling

sbt compile

Compile tests

sbt test:compile

Reformatting will happen on compilation.

Requirements Integration tests

Create Conda Env

Create an Env named smrtflow

conda create --name smrtflow requests cython numpy matplotlib jupyter

Activate python env in the current shell

source activate smrtflow

Install pysam and ngmlr

conda install -c bioconda pysam ngmlr

Better Postgres CLI tool

pip install pgcli

Pull the following PacBio repos

(using the standard $USER env var)

git clone http://[email protected]:7990/scm/sl/chemistry-data-bundle.git
git clone http://[email protected]:7990/scm/sl/pbcommand.git
git clone http://[email protected]:7990/scm/sl/pbpipeline-resources.git
git clone http://[email protected]:7990/scm/sl/pbreports.git
git clone http://[email protected]:7990/scm/sl/pbsmrtpipe.git
git clone http://[email protected]:7990/scm/sl/pysiv2.git
git clone http://[email protected]:7990/scm/sl/siv-tests.git
git clone http://[email protected]:7990/scm/sl/smrtflow.git
git clone http://[email protected]:7990/scm/sl/testkit-jobs.git
git clone http://[email protected]:7990/scm/sat/pbcore.git
git clone http://[email protected]:7990/scm/sat/pbcoretools.git
git clone http://[email protected]:7990/scm/sat/pacbiotestdata.git
git clone http://[email protected]:7990/scm/sat/pacbiotestdata.git
cd pbcore && pip install . && cd -
cd pbcommand && pip install . && cd -
cd pbsmrtpipe && pip install . && cd -
cd pbcoretools && pip install . && cd -
cd pbreports && pip install  . && cd -

Running Integration tests

Source the conda env, the run the make target

source activate smrtflow
make test-int