forked from ChrisMaherLab/SV-Hotspot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·79 lines (62 loc) · 1.71 KB
/
install.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
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo
echo " ./intall.sh -o installation_directory"
echo
echo " Options :"
echo " -o: string [ the directory where SV-HotSpot is going to be installed ]"
echo
exit
fi
args=("$@")
dest_dir=${args[1]}
echo
echo "Creating installation folder..."
if [ ! -d $dest_dir ]; then
mkdir -p $dest_dir
fi
### write the installation directory to a file
echo
echo "Copying files to the installation folder..."
cp -r src/* $dest_dir
cd $dest_dir
#### make all files executable files
echo "adding +x mode"
chmod +x *.r
chmod +x *.sh
chmod +x *.pl
echo "Please add $(pwd)/$dest_dir to your PATH. See details at https://github.com/ChrisMaherLab/SV-Hotspot."
echo "Please make you you have installed the prerequisites. See details at https://github.com/ChrisMaherLab/SV-Hotspot."
echo "---------------"
echo "Prerequisites"
echo "--------------"
echo
echo "Please make sure you have installed the following tools and executable files are added to the PATH:"
echo
echo " 1. BEDTools version 2.25.0"
echo " 2. R version 3.1.2 or higher"
echo " 3. Perl"
echo
echo "-------------------"
echo "Required R packages"
echo "-------------------"
echo
echo "Please make sure you have installed the following R packages:"
echo
echo " 1. peakPick"
echo " 2. ggplot2"
echo " 3. reshape2"
echo " 6. gridExtra"
echo " 7. gtable"
echo " 8. ggsignif"
echo " 9. plyr"
echo "10. RCircos"
echo "11. data.table"
echo "For more details, please refer to https://github.com/ChrisMaherLab/SV-Hotspot."
echo
#echo "-------------------"
#echo "Test the tool"
#echo "-------------------"
#echo
#echo "You may run SV-HotSpot by: perl ./"$dest_dir"/src/sv-hotspot.pl --help"
#echo