-
Notifications
You must be signed in to change notification settings - Fork 30
/
s-plot.sh
executable file
·79 lines (61 loc) · 1.21 KB
/
s-plot.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
#!/bin/bash
#set -x
filename=`basename $0`
usage()
{
cat <<EOF
${txtcyn}
Usage:
${filename} options${txtrst}
${bldblu}Function${txtrst}:
This software is designed to simply the process of plotting and help
researchers focus more on data rather than technology.
Currently, the following types of plot are supported.
#### Bars
${filename} barPlot
${filename} horizontalBar
${filename} multiBarNew
${filename} colorBar
#### Lines
${filename} lines
#### Dots
${filename} scatterplot
${filename} scatterplotColor
${filename} scatterplotContour
${filename} scatterplotLotsData
${filename} scatterplotMatrix
${filename} scatterplotDoubleVariable
${filename} contourPlot
#### Distribution
${filename} areaplot
${filename} boxplot
${filename} densityPlot
${filename} densityHistPlot
${filename} histogram
#### Cluster
${filename} hcluster
${filename} hclust (depleted)
#### Heatmap
${filename} heatmapS
${filename} heatmapM
${filename} heatmap.2
#### Others
${filename} volcano
${filename} vennDiagram
EOF
}
if test $# -lt 1; then
usage
exit 1
fi
program="sp_"$1".sh"
type ${program} >/dev/null 2>&1
error=$?
if test $error != 0; then
usage
echo "**Please check the program name input**"
exit 1
else
shift
${program} "$@"
fi