stable url for PFAM retrieval via interpro api :) JAL-4073
authorJim Procter <j.procter@dundee.ac.uk>
Thu, 6 Oct 2022 17:13:09 +0000 (18:13 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 6 Oct 2022 17:13:09 +0000 (18:13 +0100)
src/jalview/ws/dbsources/Pfam.java

index 93001a4..26c907c 100644 (file)
@@ -39,7 +39,7 @@ import jalview.util.Platform;
 abstract public class Pfam extends Xfam
 {
   public static final String FULL = "full", RP35 = "rp35", RP15 = "rp15",
-          RP75 = "rp75", RP55 = "rp55", SEED = "seed";
+          RP75 = "rp75", RP55 = "rp55", SEED = "seed", UNIPROT = "uniprot";
 
   public String getPfamDownloadURL(String id, String alType)
   {
@@ -53,7 +53,10 @@ abstract public class Pfam extends Xfam
 
   protected String alignmentType;
 
-  private static final String DEFAULT_PFAM_BASEURL = "https://www.ebi.ac.uk/interpro/wwwapi/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE$&download";
+  /**
+   * docs are http://www.ebi.ac.uk/interpro/api/
+   */
+  private static final String DEFAULT_PFAM_BASEURL = "www.ebi.ac.uk/interpro/api/entry/pfam/$PFAMID$/?annotation=alignment:$ALTYPE";
 
   static
   {