| 1 |
# Download the reference genome |
| 2 |
GENCODE_VERSION=26 |
| 3 |
FILE="gencode.v${GENCODE_VERSION}.annotation.gtf.gz" |
| 4 |
ANNOURL="ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_${GENCODE_VERSION}/${FILE}" |
| 5 |
URL='http://hgdownload.cse.ucsc.edu/goldenPath/hg38/bigZips/hg38.fa.gz' |
| 6 |
if [ ! -f hg37.fa ] |
| 7 |
do |
| 8 |
wget -O hg38.fa.gz $URL && \ |
| 9 |
gunzip hg38.fa.gz && \ |
| 10 |
docker run -v $(pwd):/tmp --rm jdidion/bwabase samtools faidx /tmp/hg38.fa \ |
| 11 |
done && \ |
| 12 |
if [ ! -f ${FILE} ] \ |
| 13 |
do \ |
| 14 |
wget --no-parent --no-directories -O ${FILE} ${ANNOURL} && \ |
| 15 |
gunzip ${FILE} \ |
| 16 |
done && \ |
| 17 |
# Build data container |
| 18 |
docker build -f Dockerfile -t jdidion/hg38_reference:latest . && \ |
| 19 |
rm hg38.fa* gencode* |