-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed seman motif issue of arabidopsis in brassica
- Loading branch information
Showing
7 changed files
with
58 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
# /home/data/knetminer/etl-test/brassica/58/generic/knowledge-network.oxl | ||
|
||
# Unfortunately, there isn't consistence, so we can use KETL_DATASET_ID here | ||
oxl_home="$KNET_HOME/etl-test/brassica/$KETL_DATASET_VERSION" | ||
oxl_home="$KNET_HOME/etl-test/brassicaceae-premium/$KETL_DATASET_VERSION" | ||
|
||
export KETL_SRC_OXL="$oxl_home/generic/knowledge-network.oxl" | ||
|
||
export KETL_OUT="$KETL_OUT_HOME/$KETL_DATASET_ID/$KETL_DATASET_VERSION" | ||
export KETL_OUT="$KETL_OUT_HOME/$KETL_DATASET_ID/v$KETL_DATASET_VERSION-RC2" | ||
|
||
## Neo | ||
# | ||
export KETL_HAS_NEO4J=true | ||
export KETL_NEO_VERSION='5.20.0' | ||
export KETL_NEO_VERSION='5.23.0' | ||
export NEO4J_HOME="$KNET_SOFTWARE/neo4j-community-$KETL_NEO_VERSION-etl" | ||
|
||
## Knet Initialiser | ||
# | ||
# The name within the code base, which identifies the config dir to be | ||
# used for the KnetMiner initialiser | ||
export KNET_INIT_DATASET_ID="brassica" | ||
export KNET_INIT_DATASET_ID="brassicaceae-premium" | ||
|
||
|
||
##### Values for server-sync.sh | ||
|
@@ -32,7 +32,7 @@ export KNET_NEO_DATA=/opt/data | |
# | ||
|
||
# Test servers like babvs73 | ||
export KNET_TESTINST_DATA_PATH=/opt/data/knetminer-datasets/brassica | ||
export KNET_TESTINST_DATA_PATH=/opt/data/knetminer-datasets/brassicaceae-premium | ||
# babvs73: based on old Traverser, available at knetminer.com/ci-test | ||
# babvs72: based on Neo4j+OXL Traverser, available at knetminer.com/ci-test-cypher | ||
export KNET_TESTINST_SSH="[email protected] [email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ints/config/datasets/solanaceae-58-cfg.sh → ...fig/datasets/vegetables-premium-58-cfg.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,45 @@ | ||
# Runs the KnetMiner initialising tools to create indexes and other data for the | ||
# new KnetMiner API | ||
set -e | ||
|
||
oxl_src="$1" # the OXL with URIs (mandatory) and metadata annotations (optional) | ||
out_flag="$2" # Creates this file to signal that the step was successfully completed | ||
|
||
neo_url=`ketl_get_neo_url` | ||
|
||
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dneo4j.boltUrl='$neo_url'" | ||
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dneo4j.user='$KETL_NEO_USR'" | ||
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dneo4j.password='$KETL_NEO_PWD'" | ||
|
||
|
||
printf "\n\n Creating KnetMiner initialisation files\n\n" | ||
printf "\n ====> MAKE SURE $KNET_INITIALIZER_HOME IS UPDATED!!!\n\n" | ||
|
||
knet_cfg="$KETL_OUT/tmp/knet-init" | ||
# Re-creating it all is the safest option, comment this at your own risk, and | ||
# DO NOT push the commented version back to github (or leave it in the RRes file | ||
# system). | ||
rm -Rf "$knet_cfg" | ||
mkdir -p "$knet_cfg" | ||
|
||
"$KNET_WEBAPP/docker/dataset-init.sh" --force "$knet_cfg" "$KNET_INIT_DATASET_ID" | ||
cp -R -v "$KETL_HOME/config/knet-init"/* "$knet_cfg/config" | ||
|
||
# This does all of base indexing, --neo-index and --neo-motifs in one go (in this order). | ||
# --neo-motifs is provisional, we need it until we can replace it with the new traverser. | ||
# | ||
printf "\n\n Creating Neo indexing (full-text and semantic motifs)\n\n" | ||
|
||
# Comment this to skip the traverser. BE CAREFUL | ||
neo_motifs_flag='--neo-motifs' | ||
|
||
# Comment this to skip the traverser. BE CAREFUL | ||
neo_motifs_flag='--neo-motifs' | ||
"$KNET_INITIALIZER_HOME/knet-init.sh" \ | ||
-c "$knet_cfg/config/config-etl.yml" --neo-index=config:// $neo_motifs_flag --in "$oxl_src" | ||
|
||
-c "$knet_cfg/config/config-etl.yml" --neo-index=config:// $neo_motifs_flag --in "$oxl_src" | ||
|
||
# Sam 2024/09/13: Run the Cypher query to generate stats node in Neo4j | ||
source "$KETL_HOME/utils/neo4j/neo-stats.sh" | ||
|
||
echo -e "\nAll Neo4j indexing and stats generation done\n" | ||
echo `date` >"$out_flag" | ||
# Runs the KnetMiner initialising tools to create indexes and other data for the | ||
# new KnetMiner API | ||
set -e | ||
|
||
oxl_src="$1" # the OXL with URIs (mandatory) and metadata annotations (optional) | ||
out_flag="$2" # Creates this file to signal that the step was successfully completed | ||
|
||
neo_url=`ketl_get_neo_url` | ||
|
||
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dneo4j.boltUrl='$neo_url'" | ||
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dneo4j.user='$KETL_NEO_USR'" | ||
export JAVA_TOOL_OPTIONS="$JAVA_TOOL_OPTIONS -Dneo4j.password='$KETL_NEO_PWD'" | ||
|
||
|
||
printf "\n\n Creating KnetMiner initialisation files\n\n" | ||
printf "\n ====> MAKE SURE $KNET_INITIALIZER_HOME IS UPDATED!!!\n\n" | ||
|
||
knet_cfg="$KETL_OUT/tmp/knet-init" | ||
# Re-creating it all is the safest option, comment this at your own risk, and | ||
# DO NOT push the commented version back to github (or leave it in the RRes file | ||
# system). | ||
rm -Rf "$knet_cfg" | ||
mkdir -p "$knet_cfg" | ||
|
||
"$KNET_WEBAPP/docker/dataset-init.sh" --force "$knet_cfg" "$KNET_INIT_DATASET_ID" | ||
cp -R -v "$KETL_HOME/config/knet-init"/* "$knet_cfg/config" | ||
|
||
# This does all of base indexing, --neo-index and --neo-motifs in one go (in this order). | ||
# --neo-motifs is provisional, we need it until we can replace it with the new traverser. | ||
# | ||
printf "\n\n Creating Neo indexing (full-text and semantic motifs)\n\n" | ||
|
||
# Comment this to skip the traverser. BE CAREFUL | ||
neo_motifs_flag='--neo-motifs' | ||
|
||
# Comment this to skip the traverser. BE CAREFUL | ||
neo_motifs_flag='--neo-motifs' | ||
"$KNET_INITIALIZER_HOME/knet-init.sh" \ | ||
-c "$knet_cfg/config/config-etl.yml" --neo-index=config:// $neo_motifs_flag --in "$oxl_src" | ||
|
||
# Sam 2024/09/13: Run the Cypher query to generate stats node in Neo4j | ||
source "$KETL_HOME/utils/neo4j/neo-stats.sh" | ||
|
||
echo -e "\nAll Neo4j indexing and stats generation done\n" | ||
echo `date` >"$out_flag" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters