Skip to content

Commit 9274b07

Browse files
oxo2-json2inferences SCRIPT_DIR
1 parent bb7e9aa commit 9274b07

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

oxo2-dataload/oxo2-json2inferences/explanations2json.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ NEMO_INFERENCES=$1
1414
OUTPUT_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
2020
if [ ! -f "$JAR_FILE" ]; then

oxo2-dataload/oxo2-json2inferences/inferences2trace.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ INPUT_FILE=$1
1414
OUTPUT_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
2020
if [ ! -f "$JAR_FILE" ]; then

oxo2-dataload/oxo2-sssom2json/src/main/java/uk/ac/ebi/spot/oxo/sssom2json/SSSOM2JSON.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

oxo2-dataload/sssom2json.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ if [ -d "$OUTPUT_DIR" ]; then
1616
rm -rf "$OUTPUT_DIR"
1717
fi
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
2624
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)