Skip to content

Instantly share code, notes, and snippets.

@marcc-hpc
Last active May 6, 2018 08:54
Show Gist options
  • Save marcc-hpc/b15236cf569336d29947854d88e81ae2 to your computer and use it in GitHub Desktop.
Save marcc-hpc/b15236cf569336d29947854d88e81ae2 to your computer and use it in GitHub Desktop.
Installing Sircel on MARCC
#!/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
@marcc-hpc
Copy link
Author

Updated to include launching redis-server

@marcc-hpc
Copy link
Author

Updated to 10 threads. This script should be running on a compute node.

@marcc-hpc
Copy link
Author

Added snippet to shut down redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment