X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fjalview%2Fio%2FSequenceAnnotationReport.java;fp=src%2Fjalview%2Fio%2FSequenceAnnotationReport.java;h=0a1172c2d5ea149861df549a4f76d6e2e4341648;hb=1140532d01b32b648e7e5b17ea717ae790625f8f;hp=721cd4733d72935fd5b7e9b715cc4a7423ac2ccc;hpb=c3d723759ba265ecdd89ddef7d59ebc9f33de784;p=jalview.git diff --git a/src/jalview/io/SequenceAnnotationReport.java b/src/jalview/io/SequenceAnnotationReport.java index 721cd47..0a1172c 100644 --- a/src/jalview/io/SequenceAnnotationReport.java +++ b/src/jalview/io/SequenceAnnotationReport.java @@ -55,7 +55,7 @@ public class SequenceAnnotationReport private static final int MAX_REFS_PER_SOURCE = 4; - private static final int MAX_SOURCES = 40; + private static final int MAX_SOURCES = 5; private static String linkImageURL; @@ -79,10 +79,19 @@ public class SequenceAnnotationReport { return 1; } + String s1 = ref1.getSource(); String s2 = ref2.getSource(); boolean s1Primary = DBRefSource.isPrimarySource(s1); boolean s2Primary = DBRefSource.isPrimarySource(s2); + if (ref1.isCanonical() && !ref2.isCanonical()) + { + return -1; + } + if (!ref1.isCanonical() && ref2.isCanonical()) + { + return 1; + } if (s1Primary && !s2Primary) { return -1;