Quick scripts for setting up Data Carpentry Genomics: https://datacarpentry.org/genomics-workshop/setup.html (option B)
Last active
November 20, 2019 23:59
-
-
Save pansapiens/e79d3327647177e045b238f5e820e6c3 to your computer and use it in GitHub Desktop.
Quick scripts for setting up Data Carpentry Genomics: https://datacarpentry.org/genomics-workshop/setup.html (option B)
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
#!/bin/bash | |
# Based on: https://datacarpentry.org/genomics-workshop/setup.html (option B) | |
set -e | |
MINICONDA_PATH=$HOME/miniconda3-dc | |
if [[ "$(uname)" == "Darwin" ]]; then | |
platform=MacOSX | |
http_get_cmd="curl -O " | |
elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then | |
platform=Linux | |
http_get_cmd=wget | |
fi | |
$http_get_cmd https://repo.anaconda.com/miniconda/Miniconda3-latest-${platform}-x86_64.sh | |
bash Miniconda3-latest-${platform}-x86_64.sh -b -p ${MINICONDA_PATH} | |
source ${MINICONDA_PATH}/bin/activate | |
conda init bash | |
conda create -n dc-genomics \ | |
-c bioconda \ | |
fastqc=0.11.7=5 \ | |
trimmomatic=0.38=0 \ | |
bwa=0.7.17=ha92aebf_3 \ | |
samtools=1.9=h8ee4bcc_1 \ | |
bcftools=1.8=h4da6232_3 \ | |
igv | |
conda activate dc-genomics |
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
#!/bin/bash | |
mkdir -p .downloads | |
mv *.tar.gz .downloads/ | |
mv *.zip .downloads/ | |
rm dcdata.zip.md5 | |
rm Miniconda*.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment