JAL-1479 SiftClient house keeping
[jalview.git] / src / jalview / structure / StructureSelectionManager.java
index 846ec9c..13aae26 100644 (file)
@@ -470,7 +470,7 @@ public class StructureSelectionManager
               "MAP_WITH_SIFTS", "false"));
       if (isMapViaSIFTs)
       {
-        SiftsClient siftsClient = new SiftsClient(pdb.id);
+        SiftsClient siftsClient = new SiftsClient(pdb);
         try
         {
           seqToStrucMapping = siftsClient.getSiftsStructureMapping(seq,
@@ -505,6 +505,9 @@ public class StructureSelectionManager
     final StringBuilder mappingDetails = new StringBuilder(128);
     mappingDetails.append(NEWLINE).append(
             "Sequence \u27f7 Structure mapping details");
+    mappingDetails.append(NEWLINE);
+    mappingDetails
+            .append("Method: inferred with Needleman & Wunsch alignment");
     mappingDetails.append(NEWLINE).append("PDB Sequence is :")
             .append(NEWLINE).append("Sequence = ")
             .append(maxChain.sequence.getSequenceAsString());
@@ -539,9 +542,6 @@ public class StructureSelectionManager
     mappingDetails.append(String.valueOf(maxAlignseq.seq1end
             + (seq.getStart() - 1)));
     mappingDetails.append(NEWLINE);
-    mappingDetails
-            .append("Mapping inferred with Needleman & Wunsch alignment");
-    mappingDetails.append(NEWLINE);
     maxChain.makeExactMapping(maxAlignseq, seq);
     jalview.datamodel.Mapping sqmpping = maxAlignseq
             .getMappingFromS1(false);