Skip to content

Commit

Permalink
added coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Feb 14, 2019
1 parent 0fb5191 commit 4d05af4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 5 additions & 1 deletion client/apollo/js/View/Track/AnnotTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -5890,12 +5890,16 @@ define([
information += "Unique id: " + feature.uniquename + "<br/>";
information += "Date of creation: " + feature.time_accessioned + "<br/>";
information += "Owner: " + feature.owner + "<br/>";
information += "Location: " + feature.location+ "<br/>";
if(feature.length){
information += "Length: " + feature.length+ "<br/>";
}
if (feature.parent_ids) {
information += "Parent ids: " + feature.parent_ids + "<br/>";
}
}
if (feature.justification) {
information += "Justification: " + feature.justification + "<br/>";
information += "Comment: " + feature.justification + "<br/>";
}
track.openDialog("Annotation information", information);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,9 +462,16 @@ class AnnotationEditorController extends AbstractApolloController implements Ann
String uniqueName = jsonFeature.getString(FeatureStringEnum.UNIQUENAME.value);
Feature gbolFeature = Feature.findByUniqueName(uniqueName)
JSONObject info = new JSONObject();
info.put(FeatureStringEnum.UNIQUENAME.value, uniqueName);
info.put(FeatureStringEnum.UNIQUENAME.value, uniqueName)
info.put("time_accessioned", gbolFeature.lastUpdated)
info.put("owner", gbolFeature.owner ? gbolFeature.owner.username : "N/A");
info.put("owner", gbolFeature.owner ? gbolFeature.owner.username : "N/A")
info.put("location", gbolFeature.featureLocation.fmin)
if(gbolFeature instanceof SequenceAlterationArtifact){
info.put("length", gbolFeature.offset)
}
if(gbolFeature instanceof SequenceAlteration && gbolFeature.alterationResidue){
info.put("length", gbolFeature?.alterationResidue?.size())
}
String parentIds = "";
featureRelationshipService.getParentForFeature(gbolFeature).each {
if (parentIds.length() > 0) {
Expand Down

0 comments on commit 4d05af4

Please sign in to comment.