Getting Startedยถ
Contents
Installation of MaSyMoS Development Environmentยถ
Setup workspaceยถ
Setup Folder Structureยถ
Note
the ๐ Project folder is represented in this instruction by [ENTER_HERE_YOUR_PROJECT_ROOT]
- create one single root
๐ Project folderfor everything needed for MaSyMoS - create the folder structure with subfolders as described below:
- ๐ Project folder
- ๐ code
- all repositories
- ๐ mvn
- Maven libraries
- ๐ eclipse
- a dedicated Eclipse for MaSyMoS
- ๐ database-engine
- the Neo4j database engine with webserver and everything
- ๐ databases
- the MaSyMoS-generated databases
- ๐ raw-data
- raw data, youโre downloading to work with
- ๐ workspace
- your Eclipse workspace
Download/Install needed Softwareยถ
- Download the newest โEclipse IDE Enterprise for Java Developersโ and extract it to
๐ eclipse - Download Neo4j v3.5 end extract it to
๐ database-engine - install Java 11 JDK (
apt install openjdk-11-jre) - create a file
settings.xmlin๐ mvnand paste the following content (please replace[ENTER_HERE_YOUR_PROJECT_ROOT]):
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>[ENTER_HERE_YOUR_PROJECT_ROOT]/mvn/</localRepository>
</settings>
Configure Softwareยถ
Configure Eclipseยถ
- start up Eclipse
- set default workspace to
๐ workspaceโ restart Eclipse - use
๐ mvnas Maven-Path - Window โ Preferences โ Maven โ User Settings
- Global Settings:
[ENTER_HERE_YOUR_PROJECT_ROOT]/mvn/settings.xml
- Window โ Preferences โ Maven โ User Settings
- Global Settings:
- use
Attention
set default Encoding and line delimiter (most important on Windows!)
- Window โ Preferences โ General โ Workspace
- Text file encoding:
UTF-8 - New text file line delimiter:
UNIX(\n)
- Text file encoding:
Configure Neo4jยถ
- edit file
๐ database-engine/neo4j/conf/neo4j.conf - โ
dbms.active_database=model-extraction-sbml - the value of this key points to the expected database in this folder:
๐ database-engine/neo4j-enterprise/data/databases/
- the value of this key points to the expected database in this folder:
- โ
- โ
dbms.security.auth_enabled=false - disable security restrictions for authentication
- โ
- edit file
Load Repositories and Projectsยถ
Clone Repositoriesยถ
- all repositories are stored in
๐ code, you need - masymos-cli
- masymos-core
- masymos-morre
- all repositories are stored in
- you can do this with Eclipse as well โ Git Perspective
Load Eclipse projectsยถ
- Java EE Perspective
- for all three projects do:
- File โ Importโฆ โ Git โ Projects from Git
- existing local repository
- right-click project โ Maven โ Update Projectโฆ
Work with your first Databaseยถ
Create Databaseยถ
- get SBML Models from https://www.ebi.ac.uk/biomodels/
- i.e. ftp://ftp.ebi.ac.uk/pub/databases/biomodels/releases/2017-06-26/
- extract to
๐ raw-data
- create a Java Application runner
model-extraction-sbmlfor class/masymos-cli/src/de/unirostock/sems/masymos/main/MainExtractor.javawith the following parameters
-dbPath [ENTER_HERE_YOUR_PROJECT_ROOT]/databases/model-extraction-sbml
-directory [ENTER_HERE_YOUR_PROJECT_ROOT]/raw-data/sbml/curated
-noAnno
-type sbml
-fileMode
Open the Database in Neo4jยถ
- copy the folder
๐ /databases/model-extraction-sbmlto๐ database-engine/neo4j-enterprise/data/databases/model-extraction-sbml - the DB path was already set during Configure Neo4j to:
- โ
dbms.active_database=model-extraction-sbml
- โ
- start Neo4j and browse the data
- go to
๐ database-engine/neo4j ./bin/neo4j console- open in Browser: http://localhost:7474
- simple query:
match (m:MODEL)-->(s:SBML_SPECIES) return count(s) as Anzahl, m.NAME order by Anzahl desc
- go to