forked from lmart999/FASTCLIP
-
Notifications
You must be signed in to change notification settings - Fork 15
/
configure
executable file
·68 lines (55 loc) · 1.64 KB
/
configure
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
#!/bin/sh
# configure.sh
# ------------
# used to configure FASTCLIP pipeline
# 1. Checking for dependencies
if $(type bowtie2 >/dev/null 2>&1); then
echo "bowtie2 installed"
else
echo >&2 "bowtie2 must be installed. Aborting."; exit 1
fi
if $(type STAR >/dev/null 2>&1); then
echo "STAR installed"
else
echo >&2 "STAR must be installed. Aborting."; exit 1
fi
if $(type fastx_quality_stats >/dev/null 2>&1); then
echo "FASTX-toolkit installed"
else
echo >&2 "fastx_toolkit must be installed. Aborting."; exit 1
fi
if $(type iCLIPro >/dev/null 2>&1); then
echo "iCLIPro installed"
else
echo >&2 "iCLIPro must be installed. Aborting."; exit 1
fi
if $(type bedtools >/dev/null 2>&1); then
echo "bedtools installed"
else
echo >&2 "bedtools must be installed. Aborting."; exit 1
fi
if $(type python >/dev/null 2>&1); then
echo "python installed"
else
echo >&2 "python must be installed. Aborting."; exit 1
fi
if $(python -c "import matplotlib" &> /dev/null); then
echo "matplotlib installed"
else
echo >&2 "matplotlib must be installed in python. Aborting."; exit 1
fi
if $(python -c "import pandas" &> /dev/null); then
echo "pandas installed"
else
echo >&2 "pandas must be installed in python. Aborting."; exit 1
fi
# 2. Downloading genome files
echo "Downloading and unzipping hg19 and mm9 genome files"
wget https://s3.amazonaws.com/changlabguest/FAST-iCLIP/docs_new.tar.gz
mkdir docs
tar xvzf docs_new.tar.gz -C docs && rm -f docs_new.tar.gz
# 3. Downloading example files
wget https://s3.amazonaws.com/changlabguest/FAST-iCLIP/rawdata.tar.gz
mkdir rawdata
tar xvzf rawdata.tar.gz -C rawdata && rm -f rawdata.tar.gz
mkdir results