JAL-3855 JAL-3829 don’t need to make up alphafold model retrieval URL when we’ve...
authorJim Procter <j.procter@dundee.ac.uk>
Mon, 13 Dec 2021 17:49:19 +0000 (17:49 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 13 Dec 2021 17:49:19 +0000 (17:49 +0000)
src/jalview/gui/StructureViewerBase.java
src/jalview/ws/dbsources/EBIAlfaFold.java

index 30ecc80..ae2128b 100644 (file)
@@ -1156,7 +1156,7 @@ public abstract class StructureViewerBase extends GStructureViewer
     {
       if (afclient.isValidReference(pdbid))
       {
-        pdbseq = afclient.getSequenceRecords(pdbid);
+        pdbseq = afclient.getSequenceRecords(pdbid,processingEntry.getRetrievalUrl());
       } else {
           if (processingEntry.hasRetrievalUrl())
           {
index b77fc47..4449b0b 100644 (file)
@@ -124,6 +124,10 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy
   @Override
   public AlignmentI getSequenceRecords(String queries) throws Exception
   {
+    return getSequenceRecords(queries, null);
+  }
+  public AlignmentI getSequenceRecords(String queries, String retrievalUrl) throws Exception
+  {
     AlignmentI pdbAlignment = null;
     String chain = null;
     String id = null;
@@ -145,6 +149,10 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy
       return null;
     }
     String alphaFoldCif = getAlphaFoldCifDownloadUrl(id);
+    if (retrievalUrl != null)
+    {
+      alphaFoldCif = retrievalUrl;
+    }
 
     try
     {
@@ -327,4 +335,5 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy
   {
     return new PDBFeatureSettings();
   }
+
 }