-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrequirements.sh
executable file
·107 lines (89 loc) · 2.21 KB
/
requirements.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/bin/sh
executable() {
if [ ! -x "`which $1`" ]; then
if [ -z "$2" ]; then
PROGNAME="$1"
else
PROGNAME="$2"
fi
echo "An executable \`$1' is not found. Please install $PROGNAME."
return 2
fi
}
python2mod() {
if [ -z "$2" ]; then
MODNAME="$1"
else
MODNAME="$2"
fi
if ! python -c "import $1" >/dev/null 2>&1; then
echo "A Python 2.x module \`$1' is not found. Please install $MODNAME."
fi
}
python3mod() {
if [ -z "$2" ]; then
MODNAME="$1"
else
MODNAME="$2"
fi
if ! python3 -c "import $1" >/dev/null 2>&1; then
echo "A Python 3.x module \`$1' is not found. Please install $MODNAME."
fi
}
#========================
# Check for executables
#========================
executable "pigz"
executable "wget"
executable "snakemake"
executable "echidna"
executable "bamtools"
executable "bam2fastx" "TopHat"
executable "Piranha" "Piranha"
executable "Simulate" "Piranha"
# UCSC Genome Browser tools
for name in pslCDnaFilter faSomeRecords twoBitToFa pslCDnaFilter pslToBed blat liftOver; do
executable "$name" "Jim Kent's tools"
done
# GMAP/GSNAP
for name in gmap_build psl_splicesites iit_store gsnap snpindex; do
executable "$name" "gmap/gsnap"
done
# A. Gordon's FASTX_Toolkit
for name in fastx_clipper fastq_quality_trimmer fastq_quality_filter fastx_collapser \
fastx_trimmer fastx_artifacts_filter; do
executable "$name" "FASTX_Toolkit"
done
# bedtools
for name in bedtools intersectBed; do
executable "$name" "bedtools"
done
# samtools
for name in samtools bcftools vcfutils.pl; do
executable "$name" "samtools"
done
#==============================
# Check for Python 2.x modules
#==============================
if executable "python" "Python 2.x"; then
python2mod lzo
python2mod Bio BioPython
python2mod bx "James Taylor's bx-python"
python2mod numpy
python2mod matplotlib
python2mod pysam
python2mod rpy
python2mod weblogolib
python2mod corebio
python2mod wx "wxPython >= 2.8"
python2mod futures
fi
#==============================
# Check for Python 3.x modules
#==============================
if executable "python3" "Python 3.x"; then
python3mod colorama
python3mod jinja2
python3mod numpy
python3mod yaml
fi