Skip to content

Instantly share code, notes, and snippets.

@nilesh-tawari
Created February 23, 2018 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nilesh-tawari/9476d53c4956731a09258d45d77244ea to your computer and use it in GitHub Desktop.
Save nilesh-tawari/9476d53c4956731a09258d45d77244ea to your computer and use it in GitHub Desktop.
Code snippets for DNAnexus
# Deploy a python package on DNAnexus
## Step 1: find installation path of module
python
import imp
imp.find_module("pandas")
## Step 2: copy module and put in tarball
cp -r /mnt/software/unstowable/anaconda/lib/python2.7/site-packages/pandas .
tar -zcvf pandas.tar.gz pandas/
## in applet keep in resources/home/dnanexus and add following line to code.sh
export PYTHONPATH=/home/dnanexus:$PYTHONPATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment