-
Notifications
You must be signed in to change notification settings - Fork 0
/
synthetic.sh
executable file
·50 lines (35 loc) · 1.18 KB
/
synthetic.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
basedir=${PWD}
# Check arguments
if [ $# -ne 1 ]
then
echo 'Usage: ./synthetic.sh synth_paeru|synth_ecoli|synth_myco'
echo 'Choose one of the 3 species e.g: ./synthetic.sh synth_myco'
exit 1
fi
species=$1
# Compute for the available fragmentation levels
for frag in 0.5 0.6 0.7 0.8 0.9 1
do
# Prepare output directory
mkdir -p ${basedir}/${species}/${frag}/input/fragmented/
rm -f ${basedir}/${species}/${frag}/input/fragmented/*
# Get data from PANPROVA and put in th expected directory
panprova_dir= ${basedir}/PANPROVA_${species}/${frag}/ # Location of PANPROVA data
cp ${panprova_dir}/*fasta ${basedir}/${species}/${frag}/input/fragmented/
# Run Prokka
echo 'Running Prokka...'
${basedir}/analysis_scripts/run_prokka.sh ${species}/${frag}
# Run Roary
echo 'Running Roary...'
${basedir}/analysis_scripts/run_roary.sh ${species}/${frag}
# Run Genapi
echo 'Running GenAPI...'
${basedir}/analysis_scripts/run_genapi.sh ${species}/${frag}
# Run Panaroo
echo 'Running Panaroo...'
${basedir}/analysis_scripts/run_panaroo.sh ${species}/${frag}
# Run PanDelos
echo 'Running PanDelos-frags...'
${basedir}/analysis_scripts/run_pandelos.sh ${species}
done