+ // import PAE as contact matrix - assume this will work if there was a
+ // model
+ File pae = File.createTempFile(id, "pae_json");
+ String paeURL = getAlphaFoldPaeDownloadUrl(id);
+
+ if (retrievalUrl!=null) {
+ // manufacture the PAE url from a url like ...-model-vN.cif
+ paeURL = retrievalUrl.replace("model","predicted_aligned_error").replace(".cif",".json");
+ }
+ Console.debug("Downloading pae from " + paeURL
+ + " to " + pae.toString() + "");
+
+ try {
+ UrlDownloadClient.download(paeURL, pae);
+ if (!importPaeJSONAsContactMatrix(pdbAlignment, pae))
+ {
+ Console.warn("Couln't import contact matrix from " + paeURL
+ + " (stored in " + pae.toString() + ")");
+ }
+ } catch (Exception pae_ex) {
+ Console.debug("Couldn't download PAE",pae_ex);
+ }
+