Created
February 23, 2018 04:25
-
-
Save nilesh-tawari/9476d53c4956731a09258d45d77244ea to your computer and use it in GitHub Desktop.
Code snippets for DNAnexus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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