X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fdbsources%2FEBIAlfaFold.java;h=672f0ac8ed25d5822c3653c29f3aad86eee30d68;hb=2ee5edd84da7c509efc15d241527fa62093b41c7;hp=bee1ae96707cf8170ea6a02fef7ce63ad22f482e;hpb=a67002917b669aaff650904ec4353f8c70866cc8;p=jalview.git diff --git a/src/jalview/ws/dbsources/EBIAlfaFold.java b/src/jalview/ws/dbsources/EBIAlfaFold.java index bee1ae9..672f0ac 100644 --- a/src/jalview/ws/dbsources/EBIAlfaFold.java +++ b/src/jalview/ws/dbsources/EBIAlfaFold.java @@ -358,6 +358,14 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy } public static boolean importPaeJSONAsContactMatrixToSequence( + AlignmentI pdbAlignment, File paeFile, int index, String seqId) + throws FileNotFoundException, IOException, ParseException + { + return importPaeJSONAsContactMatrixToSequence(pdbAlignment, + new FileInputStream(paeFile), index, seqId); + } + + public static boolean importPaeJSONAsContactMatrixToSequence( AlignmentI pdbAlignment, InputStream pae_input, int index, String seqId) throws IOException, ParseException { @@ -431,10 +439,17 @@ public class EBIAlfaFold extends EbiFileRetrievedProxy } public static boolean importPaeJSONAsContactMatrixToStructure( + StructureMapping sm, File paeFile) + throws FileNotFoundException, IOException, ParseException + { + return importPaeJSONAsContactMatrixToStructure(sm, + new FileInputStream(paeFile)); + } + + public static boolean importPaeJSONAsContactMatrixToStructure( StructureMapping sm, InputStream paeInput) throws IOException, ParseException { - JSONObject pae_obj = parseJSONtoPAEContactMatrix(paeInput); if (pae_obj == null) {