Skip to content

Commit 06d853c

Browse files
committed
Update dependencies & bump version to track biojava
- biojava 6.0.0-alpha1 (fixes many bugs around RCSB legacy services) - NGL 0.9.3 - MSAViewer 1.0
1 parent 8a34603 commit 06d853c

File tree

5 files changed

+27
-20
lines changed

5 files changed

+27
-20
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Deployment
1818

1919
```
2020
mvn package
21-
java -jar target/biojava-http-full-5.0.0-SNAPSHOT.jar
21+
java -jar target/biojava-http-full-6.0.0-SNAPSHOT.jar
2222
```
2323

2424
Access the following URLs:
@@ -27,3 +27,9 @@ Access the following URLs:
2727
http://localhost:8080/ngl/4hhb
2828
http://localhost:8080/cesymm/1hiv.A
2929
```
30+
31+
Libraries
32+
---------
33+
34+
- [NGL](https://github.com/nglviewer/ngl)
35+
- [MSAViewer](http://msa.biojs.net/)

pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>org.biojava</groupId>
55
<artifactId>biojava-http</artifactId>
6-
<version>5.0.0-SNAPSHOT</version>
6+
<version>6.0.0-SNAPSHOT</version>
77
<name>BioJava HTTP</name>
88
<description>HTML/JS based interfaces for BioJava</description>
99

@@ -15,7 +15,7 @@
1515
<timestamp>${maven.build.timestamp}</timestamp>
1616
<slf4j.version>1.7.19</slf4j.version>
1717
<log4j.version>2.13.3</log4j.version>
18-
<biojava.version>${project.version}</biojava.version>
18+
<biojava.version>6.0.0-alpha1</biojava.version>
1919
</properties>
2020

2121
<repositories>
@@ -30,7 +30,7 @@
3030
</snapshots>
3131
</repository>
3232
</repositories>
33-
33+
3434
<scm>
3535
<connection>scm:git:[email protected]:biojava/biojava-http.git</connection>
3636
<developerConnection>scm:git:[email protected]:biojava/biojava-http.git</developerConnection>
@@ -120,7 +120,7 @@
120120
<maxmem>2000m</maxmem>
121121
</configuration>
122122
</plugin>
123-
123+
124124
<plugin>
125125
<groupId>org.apache.maven.plugins</groupId>
126126
<artifactId>maven-shade-plugin</artifactId>
@@ -173,7 +173,7 @@
173173
</execution>
174174
</executions>
175175
</plugin>
176-
176+
177177
<!-- Include git commit -->
178178
<plugin>
179179
<groupId>org.codehaus.mojo</groupId>

src/main/java/org/biojava/http/models/NGLParams.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,23 @@
1818
* http://www.biojava.org/
1919
*
2020
* Created on Jul 6, 2016
21-
* Author: blivens
21+
* Author: blivens
2222
*
2323
*/
24-
24+
2525
package org.biojava.http.models;
26-
26+
2727
public class NGLParams {
2828
private String url;
2929
private String structUrl;
3030
private int size;
31-
31+
3232
public NGLParams(String structUrl) {
33-
url = "https://cdn.rawgit.com/arose/ngl/v0.7.1a/js/build/ngl.embedded.min.js";
34-
url = "https://rawgit.com/arose/ngl/master/dist/ngl.js";
33+
url = "//cdn.jsdelivr.net/gh/nglviewer/[email protected]/dist/ngl.js";
3534
this.structUrl = structUrl;
3635
this.setSize(500);
3736
}
38-
37+
3938
public String getUrl() {
4039
return url;
4140
}

src/main/resources/templates/cesymm.html.hbs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ document.addEventListener( "DOMContentLoaded", function() {
3636
if( lines.length > 0) {
3737
// Get number of structures from first line
3838
var n_strucs = (lines[0].length - 1) / 3;
39-
39+
4040
// Generate color palette
4141
var colors = palette('cb-Dark2', n_strucs);
42-
42+
4343
// Create selection for each repeat
4444
for (j = 0; j < n_strucs; j++) {
4545
var seleStr = [];
@@ -55,6 +55,7 @@ document.addEventListener( "DOMContentLoaded", function() {
5555
}
5656
colorSele.push(["lightgrey","*"]);
5757
58+
// Note future NGL versions may rename to NGL.ColormakerRegistry
5859
var schemeId = NGL.ColorMakerRegistry.addSelectionScheme( colorSele, "CE-Symm {{structureId}}" );
5960
6061
stage = new NGL.Stage( "viewport" );
@@ -72,9 +73,9 @@ document.addEventListener( "DOMContentLoaded", function() {
7273
} );
7374
7475
</script>
75-
<script src="https://cdn.bio.sh/msa/latest/msa.min.gz.js"></script>
76+
<script src="//s3.eu-central-1.amazonaws.com/cdn.bio.sh/msa/1.0/msa.min.gz.js"></script>
7677

77-
<script src="https://cdn.rawgit.com/google/palette.js/master/palette.js"></script>
78+
<script src="//cdn.jsdelivr.net/gh/google/palette.js@master/palette.js"></script>
7879
<!--script src="{{pallete_url}}"></script-->
7980
<script>
8081
var opts = {

src/main/resources/templates/cesymm_multi.html.hbs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ document.addEventListener( "DOMContentLoaded", function() {
3636
if( lines.length > 0) {
3737
// Get number of structures from first line
3838
var n_strucs = (lines[0].length - 1) / 3;
39-
39+
4040
// Generate color palette
4141
var colors = palette('cb-Dark2', n_strucs);
42-
42+
4343
// Create selection for each repeat
4444
var seleStr = [];
4545
for (j = 0; j < n_strucs; j++) {
@@ -57,6 +57,7 @@ document.addEventListener( "DOMContentLoaded", function() {
5757
}
5858
colorSele.push(["lightgrey","*"]);
5959
60+
// Note future NGL versions may rename to NGL.ColormakerRegistry
6061
var schemeId = NGL.ColorMakerRegistry.addSelectionScheme( colorSele, "CE-Symm {{structureId}}" );
6162
6263
stage = new NGL.Stage( "viewport" );
@@ -76,7 +77,7 @@ document.addEventListener( "DOMContentLoaded", function() {
7677
</script>
7778

7879

79-
<script src="https://cdn.bio.sh/msa/latest/msa.min.gz.js"></script>
80+
<script src="https://s3.eu-central-1.amazonaws.com/cdn.bio.sh/msa/latest/msa.min.gz.js"></script>
8081

8182
<script src="https://cdn.rawgit.com/google/palette.js/master/palette.js"></script>
8283
<!--script src="{{pallete_url}}"></script-->

0 commit comments

Comments
 (0)