-
Notifications
You must be signed in to change notification settings - Fork 0
/
PS-MCL.sh
39 lines (30 loc) · 1004 Bytes
/
PS-MCL.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
#!/bin/bash
cd $(dirname $(readlink -f $0))
#help message
help()
{
echo "PS-MCL - Parallel Shotgun Coarsening Markov Clustering"
echo " "
echo "Usage: $0 [INPUT (Graph File)] [OutputPath] [CoarseMode] [Coarse Level] [Balance Factor] [MCL Mode] [Number of Thread] [epsilon] [rand_seed] [skip rate]"
echo "CoarseMode : -sc or -hem"
echo "Coarse Level : non-negative Integer"
echo "Balance Factor : non-negative Double"
echo "MCL Mode : -reg or -basic"
echo "Number of Thread : positive Integer"
echo "epsilon : run until the error is under epsilon"
echo "rand_seed : random seed number"
echo "skip rate : skip rate of nodes in shotgun coarsening"
}
if [ $# -lt 6 ];then
echo "Error: Please provide parameters"
echo "========================================="
help
exit 127
fi
QUERY="java -jar bin/PS-MCL.jar -mcl"
for arg in "$@"; do
QUERY="$QUERY ${arg}"
done
echo $QUERY
echo =====================
$QUERY