MCPcopy Index your code
hub / github.com/epam/NGB

github.com/epam/NGB @v2.7.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.7.1 ↗ · + Follow
14,159 symbols 48,254 edges 1,957 files 2,397 documented · 17%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build status codecov

NGB

New Genome Browser (NGB) is a Web client-server tool that has been developed with the several key distinctive features in mind:
* Visualization of Structural Variations (SVs) and their supporting reads * Performance and scalability while working with big/cloud genome data * CRAM format support * Integration with various data sources, including ENSEMBL, UniPROT and other internal/external databases * User experience that is based on a set of useful features like hotkeys, variation tables, docking widgets, etc. * Web 3D molecular viewer integrated

We have done our best to make those features at the highest possible level and thus make NGB one the best web-based genome browser. The community lead by EPAM intends to develop NGB extending it functionality and improving user experience. Your suggestions and comments are welcome.

We believe that NGB (being a namesake of a Neuroglobin (NGB) gene, coding a protein that is involved in oxygen transport in the brain) will help researchers and clinicians to discover the valuable insights in the huge volumes of genomic data.

NGB

Documentation

Detailed documentation on building, installation, usage is available at * Markdown sources * Latest HTML documentation

Publications

Links to publications that contain NGB references * Prioritisation of structural variant calls in cancer genomes * Dataset visualization for article Prioritisation of Structural Variant Calls in Cancer Genomes

Quickstart

Docker image is used to build and run NGB for a quickstart. Other build and run options are described at installation section of NGB documentation

Make sure docker is installed

$ docker --version
Docker version 1.12.5

If docker is not installed, please follow docker engine installation guide for your operating system

Get NGB sources

$ git clone https://github.com/epam/NGB.git
$ cd NGB

Build sources and package binaries into docker container

$ ./gradlew buildDocker

Image with name ngb:latest will be created. Verify that it was created correctly

$ docker images
REPOSITORY      TAG     IMAGE ID        CREATED         SIZE
ngb             latest  356774a063ad    2 minutes ago    564.4 MB

Run NGB from a created image

Replace placeholder with a real path to a folder with NGS data

$ docker run -p 8080:8080 -d --name ngbcore -v <YOUR_NGS_DATA_FOLDER>:/ngs ngb:latest

Verify that NGB is up and running: navigate with your web-browser to http://localhost:8080/catgenome

Please note that the following web-browsers are supported at the moment * Chrome (>= 56) * Firefox (>= 51) * Safari (>= 9) * EDGE (>= 25)

Default NGB page should be shown

Docker Empty View

That's it. Now NGS files could be added and viewed. Please refer to NGB Command Line Interface - Typical tasks to register genome and NGS files

Prebuilt binaries

NGB binaries can be retrieved from the following locations: * Releases: * GitHub Releases: https://github.com/epam/NGB/releases * Direct HTTP links: Release versions * Development builds (created from develop branch - each commit): Development versions

How to build NGB

Requirements

General build process

Gradle build script is provided for building NGB components

$ ./gradlew [tasks]

Available tasks:
buildWar        builds java web application archive, containing client and server binaries
buildCli        builds ngb command line interface, used to manipulate data within ngb
buildDocker     builds jar-file and packages it into a docker image, using docker/core/Dockerfile
buildDockerDemo builds "core" docker image and initilizes it with demo data, using docker/demo/Dockerfile
buildDoc        builds markdown documents into html web-site
buildJar        builds standalone jar-file with embedded Tomcat
buildDesktop    builds standalone desktop NGB application
buildAll        builds all components, listed above

All tasks could be combined.

Build artifacts are placed into dist/ folder in a root level of a cloned repository

If this script does not fit - each component could be built on it's own. Build process for each component is described in a appropriate README file, located in the component's folder

Examples for typical tasks

# Build NGB as a standalone JAR file with Command Line Interface tools
$ ./gradlew buildJar buildCli

# Build docker with documentation
$ ./gradlew buildDocker buildDoc

Extension points exported contracts — how you extend this code

TomcatConfigurer (Interface)
Enables configuration of Tomcat container, should be used only with embedded container [8 implementers]
server/catgenome/src/main/java/com/epam/catgenome/app/TomcatConfigurer.java
Printable (Interface)
Printable is an interface for classes, that support printing in a table view. @param type of printed objects [10 implementers]
server/ngb-cli/src/main/java/com/epam/ngb/cli/manager/printer/Printable.java
Range (Interface)
(no doc)
client/client/modules/render/core/viewport/baseViewport.js
Iterator (Interface)
(no doc) [18 implementers]
server/catgenome/src/main/java/com/epam/catgenome/util/feature/reader/TabixReader.java
CommandHandler (Interface)
CommandHandler provides an interface for checking input command line arguments and options and running CLi comma [50 implementers]
server/ngb-cli/src/main/java/com/epam/ngb/cli/manager/command/handler/CommandHandler.java
Range (Interface)
(no doc)
client/client/modules/render/tracks/bam/internal/transformers/layoutReads.js
IndexCache (Interface)
Marker interface for the use of cache objects in EhCacheBasedIndexCache. [4 implementers]
server/catgenome/src/main/java/com/epam/catgenome/util/feature/reader/IndexCache.java
RequestPayload (Interface)
(no doc) [9 implementers]
server/ngb-cli/src/main/java/com/epam/ngb/cli/entity/RequestPayload.java

Core symbols most depended-on inside this repo

getId
called by 1452
server/catgenome/src/main/java/com/epam/catgenome/manager/seg/parser/SegFeature.java
name
called by 1060
client/client/app/shared/dispatcher/events/dispatcher-event.js
push
called by 710
client/client/modules/render/tracks/bam/internal/cache/line.js
get
called by 680
server/catgenome/src/main/java/com/epam/catgenome/dao/metadata/MetadataDao.java
put
called by 607
server/catgenome/src/main/java/com/epam/catgenome/util/NggbIntervalTreeMap.java
getName
called by 575
server/catgenome/src/main/java/com/epam/catgenome/manager/gene/writer/Gff3Feature.java
isEmpty
called by 503
server/catgenome/src/main/java/com/epam/catgenome/util/NggbIntervalTreeMap.java
add
called by 466
server/catgenome/src/main/java/com/epam/catgenome/manager/bam/filters/Filter.java

Shape

Method 11,677
Class 1,828
Function 492
Enum 130
Interface 32

Languages

Java59%
TypeScript41%

Modules by API surface

client/client/app/shared/projectContext/index.js161 symbols
server/catgenome/src/main/java/com/epam/catgenome/manager/externaldb/bindings/dbsnp/Rs.java115 symbols
server/catgenome/src/main/java/com/epam/catgenome/manager/FileManager.java100 symbols
server/catgenome/src/main/java/com/epam/catgenome/manager/externaldb/bindings/uniprot/CommentType.java84 symbols
server/catgenome/src/main/java/com/epam/catgenome/controller/vo/externaldb/NCBIGeneVO.java74 symbols
server/catgenome/src/main/java/com/epam/catgenome/manager/maf/parser/NggbMafFeature.java69 symbols
server/catgenome/src/main/java/com/epam/catgenome/entity/maf/MafRecord.java68 symbols
server/catgenome/src/test/java/com/epam/catgenome/util/AclTestDao.java65 symbols
server/catgenome/src/main/java/com/epam/catgenome/dao/user/UserDao.java64 symbols
server/catgenome/src/main/java/com/epam/catgenome/entity/vcf/VcfFilterForm.java58 symbols
server/catgenome/src/main/java/com/epam/catgenome/manager/externaldb/bindings/uniprot/ObjectFactory.java57 symbols
server/catgenome/src/main/java/com/epam/catgenome/manager/externaldb/bindings/dbsnp/ExchangeSet.java54 symbols

Datastores touched

ngb_testDatabase · 1 repos

For agents

$ claude mcp add NGB \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page