A standalone Jar distribution is available for NGB, which includes embedded Tomcat server
Verify that your system meets or exceeds the following hardware/software requirements
Obtain NGB source code from GitHub:
$ git clone https://github.com/epam/NGB.git
$ cd NGB
Build NGB standalone jar, using Gradle build script
$ ./gradlew buildJar
You can find catgenome.jar archive in the dist/ folder
Run catgenome.jar
Note: data files, used by NGB instance, will be located in a current
directory (current directory of a console)
# Data files will be located in the same folder as a catgenome.jar
$ java -jar catgenome.jar
# Data files will be located in /home/user folder
$ pwd
/home/user
$ java -jar NGB/dist/catgenome.jar
NGB will be avalable at http://localhost:8080/catgenome
By default NGB will run on port 8080 and locate all the data (files and database) in the runtime folder To customize the configuration the following options are available
You can provide an external file catgenome.properties to specify data location. Available properties:
If you want to enable browsing NGS files directly from server’s file system, add the following properties:
If this property is not set, root will be set to the root of file system.
If you want to configure default options for tracks visualization on a client side, add the following properties:
json
configuration files for NGB clientIf you want to specify max number of VcfIndexEntries keeping in memory during vcf loading, add the following property. For files, which produce more entries then the number, extra entries will be spilled to disk (temp directory).
You should put catgenome.properties in config folder in the runtime folder or provide path to folder with properties file from command line:
$ java -jar catgenome.jar --conf=/folder/with/properties
NGB uses Spring Boot so it supports a full stack of Spring Boot Application properties. These properties may be specified by the command line:
# Run NGB on 9999 port
$ java -jar catgenome.jar --server.port=9999
# Disable traffic compression
$ java -jar catgenome.jar --server.compression.enabled=false
or in application.properties file in config folder in the runtime folder:
See the full list of available options in the Spring Documentation