Last active
May 6, 2018 08:54
-
-
Save marcc-hpc/b15236cf569336d29947854d88e81ae2 to your computer and use it in GitHub Desktop.
Installing Sircel on MARCC
This file contains 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
#!/bin/bash | |
# this module is specific to MARCC | |
module load anaconda-python/3.6 | |
# create anaconda environment and use it | |
conda create -y -n sircel python | |
source activate sircel | |
# install kallisto, redis | |
conda install -y -c bioconda kallisto | |
conda install -y redis | |
# install sircel to same conda environment | |
git clone https://github.com/pachterlab/sircel | |
cd sircel | |
python3 setup.py install --kallisto $(command -v kallisto) --prefix "$HOME"/.conda/envs/"$CONDA_DEFAULT_ENV" | |
cd .. | |
# get to the example | |
cd sircel/example | |
# set up tmpdir to relative tmp (should be in scratch), otherwise it will try to use /tmp and there's not enough space | |
mkdir -p tmp | |
export TMPDIR="$PWD"/tmp | |
# launch redis-server on port 6379 in the background | |
redis-server & | |
redis-cli ping # should emit PONG | |
# run sircel | |
READFQ=SRR1873277_1m_r1.fastq.gz | |
BARCFQ=SRR1873277_1m_r2.fastq.gz | |
sircel --threads 10 --dropseq --output_dir sircel_test --reads "$READFQ" --barcodes "$BARCFQ" | |
# shutdown redis | |
redis-cli shutdown |
Added snippet to shut down redis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to 10 threads. This script should be running on a compute node.