File tree Expand file tree Collapse file tree 4 files changed +3
-7
lines changed
oxo2-sssom2json/src/main/java/uk/ac/ebi/spot/oxo/sssom2json Expand file tree Collapse file tree 4 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ NEMO_INFERENCES=$1
1414OUTPUT_FILE=$2
1515
1616# Define the path to the JAR file
17- JAR_FILE=" oxo2-json2inferences/target/oxo2-json2inferences-1.0.0-SNAPSHOT.jar"
17+ JAR_FILE=" $SCRIPT_DIR / oxo2-json2inferences/target/oxo2-json2inferences-1.0.0-SNAPSHOT.jar"
1818
1919# Check if the JAR file exists
2020if [ ! -f " $JAR_FILE " ]; then
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ INPUT_FILE=$1
1414OUTPUT_FILE=$2
1515
1616# Define the path to the JAR file
17- JAR_FILE=" oxo2-json2inferences/target/oxo2-json2inferences-1.0.0-SNAPSHOT.jar"
17+ JAR_FILE=" $SCRIPT_DIR / oxo2-json2inferences/target/oxo2-json2inferences-1.0.0-SNAPSHOT.jar"
1818
1919# Check if the JAR file exists
2020if [ ! -f " $JAR_FILE " ]; then
Original file line number Diff line number Diff line change @@ -118,8 +118,6 @@ public static void main(String[] args) throws IOException {
118118 private static void processMappingSets (String inputDirectory , String outputDirectory ) throws IOException {
119119 Stream <Path > directoriesOfMappingSets = getDirectories (inputDirectory );
120120
121- // List<Path> listOfDirectoriesOfMappingSets = directoriesOfMappingSets.collect(Collectors.toList());
122-
123121 String mappingSetDirectory = outputDirectory + File .separator + "mappingSet" ;
124122 String mappingDirectory = outputDirectory + File .separator + "mapping" ;
125123
Original file line number Diff line number Diff line change @@ -16,11 +16,9 @@ if [ -d "$OUTPUT_DIR" ]; then
1616 rm -rf " $OUTPUT_DIR "
1717fi
1818
19- # Root directory for scripts
20- SCRIPT_PATH=$( dirname $( readlink -f $0 ) )
2119
2220# Run the SSSOM2JSON
23- java $JAVA_OPTS -jar $SCRIPT_PATH /oxo2-sssom2json/target/oxo2-sssom2json-1.0.0-SNAPSHOT.jar -i $INPUT_DIR -o $OUTPUT_DIR
21+ java $JAVA_OPTS -jar $SCRIPT_DIR /oxo2-sssom2json/target/oxo2-sssom2json-1.0.0-SNAPSHOT.jar -i $INPUT_DIR -o $OUTPUT_DIR
2422
2523# Check if the command was successful
2624if [ $? -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments