Skip to content

Commit

Permalink
Merge branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hplahar committed Sep 16, 2015
2 parents ca3d0a1 + ccabb5c commit c0a3195
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.jbei</groupId>
<artifactId>ice</artifactId>
<packaging>war</packaging>
<version>4.4.1</version>
<version>4.4.2</version>
<name>ice</name>
<description>Inventory of Composable Elements (ICE) for Synthetic Biology</description>
<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
public class PigeonSBOLv {

private static final String NEWLINE = System.getProperty("line.separator");
private static final String PIGEON_URL = "http://cidar1.bu.edu:5801/dev/perch2.php";
private static final String PIGEON_URL = "http://128.197.173.22:5801/dev/perch2.php";
private static final HashMap<String, String> map = new HashMap<>();

static {
Expand Down Expand Up @@ -110,7 +110,7 @@ public static URI generatePigeonVisual(Sequence sequence) {

StringBuilder sb = new StringBuilder();
if (visitor.getDnaComponent() != null) {
sb.append(toPigeon(visitor.getDnaComponent(), null));
sb.append(toPigeon(visitor.getDnaComponent(), null, false));
}

sb.append("# Arcs").append(NEWLINE);
Expand All @@ -126,14 +126,14 @@ public static String generatePigeonScript(Sequence sequence) {

StringBuilder sb = new StringBuilder();
if (visitor.getDnaComponent() != null) {
sb.append(toPigeon(visitor.getDnaComponent(), null));
sb.append(toPigeon(visitor.getDnaComponent(), null, false));
}

sb.append("# Arcs").append(NEWLINE);
return sb.toString();
}

private static String toPigeon(DnaComponent component, StrandType strandType) {
private static String toPigeon(DnaComponent component, StrandType strandType, boolean addLabel) {
if (component == null)
return "";

Expand All @@ -158,11 +158,13 @@ private static String toPigeon(DnaComponent component, StrandType strandType) {
if (replacedSpaces.trim().isEmpty())
replacedSpaces = "unnamed";
sb.append(pigeonType).append(" ").append(replacedSpaces).append(" ").append(split[1]);
if (!addLabel)
sb.append(" nl");
sb.append(NEWLINE);
}
} else {
for (SequenceAnnotation sa : component.getAnnotations()) {
sb.append(toPigeon(sa.getSubComponent(), sa.getStrand()));
sb.append(toPigeon(sa.getSubComponent(), sa.getStrand(), false));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
</div>
<div class="text-right">
&copy;&nbsp;<a href="https://github.com/JBEI/ice">JBEI ICE Registry</a> <span
class="label label-primary">v4.4.1</span><br>
class="label label-primary">v4.4.2</span><br>
All rights reserved. <br>
<a href="https://github.com/JBEI/ice/issues/new">Submit an Issue</a>&nbsp; <span class="text-muted">|</span> &nbsp;<a
href="http://public-registry.jbei.org/manual">Help</a>
Expand Down
3 changes: 1 addition & 2 deletions src/main/webapp/scripts/entry/general-information.html
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,7 @@
<div style="width: 100%; overflow: auto; position: relative; zoom: 1;"
ng-if='entry.hasSequence && showSBOL'>
<div style="width: 0;">
<img height="130px"
ng-src="download?sid={{sessionId}}&amp;rid={{entry.recordId}}">
<img height="100px" ng-src="download?sid={{sessionId}}&amp;rid={{entry.recordId}}">
</div>
</div>

Expand Down

0 comments on commit c0a3195

Please sign in to comment.