insignificant test file changes
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Fri, 10 May 2019 02:53:36 +0000 (21:53 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Fri, 10 May 2019 02:53:36 +0000 (21:53 -0500)
src/jalview/ext/ensembl/EnsemblSeqProxy.java
test/jalview/datamodel/AlignmentTest.java

index 2e20665..49e6341 100644 (file)
@@ -423,7 +423,9 @@ public abstract class EnsemblSeqProxy extends EnsemblRestClient
 
     List<SequenceI> seqs = parseSequenceJson(ids);
     if (seqs == null)
-       return alignment;
+    {
+      return alignment;
+    }
 
     if (seqs.isEmpty())
     {
@@ -490,7 +492,9 @@ public abstract class EnsemblSeqProxy extends EnsemblRestClient
        Platform.timeCheck("ENS seqproxy", Platform.TIME_MARK);
       Map<String, Object> val = (Map<String, Object>) getJSON(null, ids, -1, MODE_MAP, null);
       if (val == null)
-         return null;
+      {
+        return null;
+      }
       Object s = val.get("desc");
       String desc = s == null ? null : s.toString();
       s = val.get("id");
index 14e74e4..cdcc219 100644 (file)
@@ -243,7 +243,24 @@ public class AlignmentTest
                   return false;
 
                 }
-                if (alignment.findIndex(dbr.getMap().getTo()) == -1)
+
+                SequenceI x = dbr.getMap().getTo();
+//                System.out.println(alignment.toString());
+//                System.out.println(dbr);
+//                System.out.println("map " + dbr.getMap());
+//                System.out.println("to " + dbr.getMap().getTo());
+//                if (x.toString().indexOf("ENSP00000395337") >= 0)
+//                {
+//                  // The TO name here is "ENSP00000395337"
+//                  // But the name in the table is "LDAH_HUMAN"
+//                  System.out.println(x.getSequenceAsString());
+//                  SequenceI y = alignment.getSequenceAt(0);
+//                  System.out.println(y.getSequenceAsString());
+//                  System.out.println(x.getSequenceAsString()
+//                          .equals(y.getSequenceAsString()));
+//
+//                }
+                if (alignment.findIndex(x) == -1)
                 {
                   if (raiseAssert)
                   {