MetFrag web application WAR file to be used with tomcat container
1.0K
git clone https://github.com/ipb-halle/MetFragRelaunched.git
This container packages the MetFrag (https://github.com/ipb-halle/MetFragRelaunched) webapp and some text databases based on the latest official tomcat docker container.
Run MetFrag at http://localhost:8888/MetFragWeb
docker run -it --rm -p 8888:8080 ipb-halle/metfragweb
Run Metfrag at http://localhost:8888/mymetfrag with 4GB JVM size using a settings file from ./settings.properties
docker run -it --rm -e JAVA_OPTS="-Xmx4g -Xms4g" -e WEBPREFIX=mymetfrag -v $(pwd)/settings.properties:/resources/settings.properties -p 8888:8080 ipbhalle/metfragweb
See https://hub.docker.com/r/ipbhalle/metfragweb for automatic builds.
mvn clean install -pl MetFragLib -am
mvn clean install -pl MetFragLib -am -DskipTests
mvn clean install -pl MetFragCommandLine -am
mvn clean install -pl MetFragCommandLine -am -DskipTests
mvn clean install -pl MetFragR -am
mvn clean install -pl MetFragR -am -DskipTests
R CMD check metfRag
R CMD build metfRag
install.packages("metfRag",repos=NULL,type="source")
library(metfRag)
library(devtools)
install_github("ipb-halle/MetFragR/metfRag")
## define chemspider token to query ChemSpider database
ChemSpiderToken = ...
## if MetFragWeb host is connected via proxy to the internet provide proxy settings for
## different web services
MoNAProxyServer = ...
MoNAProxyPort = ...
KeggProxyServer = ...
KeggProxyPort = ...
MetaCycProxyServer = ...
MetaCycProxyPort = ...
## to speed up database queries you can set up local repositories by setting up MySQL or
## PostgreSQL databases
LocalPubChemDatabase = ...
LocalPubChemDatabaseCompoundsTable = ...
LocalPubChemDatabasePortNumber = ...
LocalPubChemDatabaseServerIp = ...
LocalPubChemDatabaseMassColumn = ...
LocalPubChemDatabaseFormulaColumn = ...
LocalPubChemDatabaseInChIColumn = ...
LocalPubChemDatabaseInChIKey1Column = ...
LocalPubChemDatabaseInChIKey2Column = ...
LocalPubChemDatabaseCidColumn = ...
LocalPubChemDatabaseSmilesColumn = ...
LocalPubChemDatabaseUser = ...
LocalPubChemDatabasePassword = ...
LocalPubChemDatabaseCompoundNameColumn = ...
mvn clean tomcat7:run-war -pl MetFragWeb
mvn clean tomcat7:run-war -pl MetFragWeb -DskipTests
after the successful build Tomcat web server runs on port 8080
MetFragWeb can be accessed via pointing to http://localhost:8080/index.xhtml in the web browser
you can change the port by adding -Dmaven.tomcat.port=...
mvn package -pl MetFragWeb
mvn tomcat7:run-war-only -pl MetFragWeb
mvn exec:java -Dexec.mainClass="java_class_path" -Dexec.args="arg0 arg1 arg2 ..."
Ruttkies C., Schymanski E.L. et al, MetFrag relaunched: incorporating strategies beyond in silico fragmentation. Journal of Cheminformatics, 2016, 8:3. http://jcheminf.springeropen.com/articles/10.1186/s13321-016-0115-9
Content type
Image
Digest
Size
1.1 GB
Last updated
over 5 years ago
docker pull sneumann/metfrag-war