Skip to content

Commit

Permalink
Deployed new UI with NGL viewer instead of 3Dmol
Browse files Browse the repository at this point in the history
  • Loading branch information
sverhoeven committed Dec 2, 2016
1 parent 88be874 commit 0414efd
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 738 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The file is formatted as described on http://keepachangelog.com/.

## [Unreleased]

## Changed

* Switched from 3Dmol to NGL (https://github.com/3D-e-Chem/molviewer-tsx/issues/4)

## [0.1.4] - 2016-11-25

### Added
Expand Down
7 changes: 3 additions & 4 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Software uses 3Dmol.js
Software uses NGL (https://github.com/arose/ngl)

Nicholas Rego and David Koes
3Dmol.js: molecular visualization with WebGL
Bioinformatics (2015) 31 (8): 1322-1324 doi:10.1093/bioinformatics/btu829
- AS Rose, AR Bradley, Y Valasatava, JM Duarte, A Prlić and PW Rose. Web-based molecular graphics for large complexes. ACM Proceedings of the 21st International Conference on Web3D Technology (Web3D '16): 185-186, 2016. doi:10.1145/2945292.2945324
- AS Rose and PW Hildebrand. NGL Viewer: a web application for molecular visualization. Nucl Acids Res (1 July 2015) 43 (W1): W576-W579 first published online April 29, 2015. doi:10.1093/nar/gkv402
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
KNIME node which launches a web browser with a molecule viewer powered by 3Dmol.js.
KNIME node which launches a web browser with a molecule viewer powered by [NGL](https://github.com/arose/ngl).

[![Build Status](https://travis-ci.org/3D-e-Chem/knime-molviewer.svg?branch=master)](https://travis-ci.org/3D-e-Chem/knime-molviewer)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.168569.svg)](https://doi.org/10.5281/zenodo.168569)

This project uses [Eclipse Tycho](https://www.eclipse.org/tycho/) to perform build steps.
This project uses a web user interface based on https://github.com/3D-e-Chem/molviewer-tsx .

# Installation

Expand Down Expand Up @@ -125,3 +125,5 @@ Server sent events are used to inform the web page that:
* view closed
* input changed
* hilite changed

This project uses [Eclipse Tycho](https://www.eclipse.org/tycho/) to perform build steps.
7 changes: 3 additions & 4 deletions feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
</description>

<copyright>
Software uses 3Dmol.js
Nicholas Rego and David Koes
3Dmol.js: molecular visualization with WebGL
Bioinformatics (2015) 31 (8): 1322-1324 doi:10.1093/bioinformatics/btu829
Software uses NGL
- AS Rose, AR Bradley, Y Valasatava, JM Duarte, A Prlić and PW Rose. Web-based molecular graphics for large complexes. ACM Proceedings of the 21st International Conference on Web3D Technology (Web3D '16): 185-186, 2016. doi:10.1145/2945292.2945324
- AS Rose and PW Hildebrand. NGL Viewer: a web application for molecular visualization. Nucl Acids Res (1 July 2015) 43 (W1): W576-W579 first published online April 29, 2015. doi:10.1093/nar/gkv402
</copyright>

<license url="https://www.apache.org/licenses/LICENSE-2.0.txt">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import io.swagger.annotations.License;
import io.swagger.annotations.SwaggerDefinition;

@SwaggerDefinition(info = @Info(description = "Datastore for 3DMol.js based molecule viewer",
@SwaggerDefinition(info = @Info(description = "Datastore for WebGL based molecule viewer",
// TODO read version from pom.xml or MANIFEST.MF
version = "1.0.0", title = "The Molviewer API", license = @License(name = "Apache 2.0", url = "http://www.apache.org/licenses/LICENSE-2.0")), consumes = {
"application/json" }, produces = { "application/json", "text/event-stream" }, schemes = {
Expand Down
2 changes: 1 addition & 1 deletion server/src/main/resources/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="/favicon.ico"><title>Molviewer</title><link href="/static/css/main.534a40ae.css" rel="stylesheet"></head><body><div id="root"></div><script type="text/javascript" src="/static/js/3Dmol-min.js"></script><script type="text/javascript" src="/static/js/main.c71886df.js"></script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="shortcut icon" href="/favicon.ico"><title>Molviewer</title><link href="/static/css/main.3e482447.css" rel="stylesheet"></head><body><div id="root" style="height:100%"></div><script type="text/javascript" src="/static/js/ngl.js"></script><script type="text/javascript" src="/static/js/main.f5700504.js"></script></body></html>

Large diffs are not rendered by default.

707 changes: 0 additions & 707 deletions server/src/main/resources/static/js/3Dmol-min.js

This file was deleted.

16 changes: 0 additions & 16 deletions server/src/main/resources/static/js/main.c71886df.js

This file was deleted.

16 changes: 16 additions & 0 deletions server/src/main/resources/static/js/main.f5700504.js

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions server/src/main/resources/static/js/ngl.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void testRest() throws ClientProtocolException, IOException, URISyntaxExc
public void testSwaggerYaml() throws URISyntaxException, ClientProtocolException, IOException {
URI uri = server.getBaseUri().resolve("/api/swagger.yaml");
String response = Request.Get(uri).execute().returnContent().asString();
assertTrue(response.contains("3DMol.js"));
assertTrue(response.contains("WebGL"));
assertTrue(response.contains("ligands"));
assertTrue(response.contains("hilite"));
assertTrue(response.contains("event-stream"));
Expand All @@ -84,7 +84,7 @@ public void testSwaggerYaml() throws URISyntaxException, ClientProtocolException
public void testSwaggerJson() throws URISyntaxException, ClientProtocolException, IOException {
URI uri = server.getBaseUri().resolve("/api/swagger.json");
String response = Request.Get(uri).execute().returnContent().asString();
assertTrue(response.contains("3DMol.js"));
assertTrue(response.contains("WebGL"));
assertTrue(response.contains("ligands"));
assertTrue(response.contains("hilite"));
assertTrue(response.contains("event-stream"));
Expand Down

0 comments on commit 0414efd

Please sign in to comment.