-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathrun_evaluation_dmel.sh
executable file
·32 lines (25 loc) · 1.01 KB
/
run_evaluation_dmel.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
FASTQ_URL="http://ftp.sra.ebi.ac.uk/vol1/fastq/ERR358/005/ERR3588905/ERR3588905_1.fastq.gz"
REF_URL="http://ftp.ensembl.org/pub/release-99/fasta/drosophila_melanogaster/dna/Drosophila_melanogaster.BDGP6.28.dna.toplevel.fa.gz"
GFF_URL="http://ftp.ensembl.org/pub/release-99/gff3/drosophila_melanogaster/Drosophila_melanogaster.BDGP6.28.99.gff3.gz"
CONF="evaluation/config_dmel.yml"
CORES=50
OUT_DIR="evaluation/pipeline-evaluation-dmel"
RES_DIR="$OUT_DIR/results"
DATA_DIR="$OUT_DIR/data"
FASTQ="$DATA_DIR/ERR3588905_1.fastq"
REF="$DATA_DIR/Drosophila_melanogaster.BDGP6.28.dna.toplevel.fa"
GFF="$DATA_DIR/Drosophila_melanogaster.BDGP6.28.99.gff3"
rm -fr $OUT_DIR/results
mkdir -p $OUT_DIR/data
if [ ! -f $REF ];
then (cd $DATA_DIR; curl -L -C - -O $REF_URL); gzip -d ${REF}.gz
fi
if [ ! -f $GFF ]
then
(cd $DATA_DIR; curl -L -C - -O $GFF_URL); gzip -d ${GFF}.gz
fi
if [ ! -f $FASTQ ];
then (cd $DATA_DIR; curl -L -C - -O $FASTQ_URL); gzip -d ${FASTQ}.gz
fi
snakemake --use-conda -j $CORES all --configfile $CONF