-
Notifications
You must be signed in to change notification settings - Fork 1
/
ML-AMPA.sh
44 lines (37 loc) · 1.7 KB
/
ML-AMPA.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
#!/bin/bash
# *******************************************************************************
# *
# * A Machine Learning Method for the Prediction of Receptor
# * Activation in the Simulation of Synapses
# * Copyright (C) 2013 J. Montes, E. Gomez, A. Merchan-Perez, J. DeFelipe,
# * J. M. Peña
# *
# * This program is free software: you can redistribute it and/or modify
# * it under the terms of the GNU Lesser General Public License as published
# * by the Free Software Foundation, either version 3 of the License, or
# * (at your option) any later version.
# *
# * This program is distributed in the hope that it will be useful,
# * but WITHOUT ANY WARRANTY; without even the implied warranty of
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# * GNU Lesser General Public License for more details.
# *
# * You should have received a copy of the GNU Lesser General Public License
# * along with this program. If not, see <http://www.gnu.org/licenses/>.
# *
# *******************************************************************************
# CONFIGURATION VARS
# These must be properly for the program to work
# Directory path to the R instalation. This MUST be set prperly.
R_HOME=/opt/local/lib/R
# Directory path to the rJava extension. This can usually work with the default value.
RJAVA_PATH=${R_HOME}/library/rJava/jri/
# *******************************************************************************
if [ $# -lt 5 ]
then
echo "use $0: <[AMPA]> <[T]> <Ls> <Hc> <E>"
exit 1
fi
RJAVA_CLASSPATH=${RJAVA_PATH}/JRI.jar
export R_HOME
java -Djava.library.path=${RJAVA_PATH} -cp ./bin:./weka.jar:${RJAVA_CLASSPATH} Predictor AMPA.O_model_M5P_all.bin $1 $2 $3 $4 $5