public class AFPChainXMLParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ALGORITHM_NAME |
| Constructor and Description |
|---|
AFPChainXMLParser() |
| Modifier and Type | Method and Description |
|---|---|
static String |
flipAlignment(String xml)
Takes an XML representation of the alignment and flips the positions of name1 and name2
|
static AFPChain |
fromXML(String xml,
Atom[] ca1,
Atom[] ca2) |
static AFPChain |
fromXML(String xml,
String name1,
String name2,
Atom[] ca1,
Atom[] ca2)
new utility method that checks that the order of the pair in the XML alignment is correct and flips the direction if needed
|
static boolean |
isErrorXML(String xml)
returns true if the alignment XML contains an error message
|
static AFPChain[] |
parseMultiXML(String xml) |
static void |
rebuildAFPChain(AFPChain afpChain,
Atom[] ca1,
Atom[] ca2)
replace the PDB res nums with atom positions:
|
public static final String DEFAULT_ALGORITHM_NAME
public AFPChainXMLParser()
public static AFPChain fromXML(String xml, String name1, String name2, Atom[] ca1, Atom[] ca2) throws IOException, StructureException
xml - name1 - name1 - ca1 - ca2 - IOExceptionStructureExceptionpublic static AFPChain fromXML(String xml, Atom[] ca1, Atom[] ca2) throws IOException
IOExceptionpublic static boolean isErrorXML(String xml)
xml - public static String flipAlignment(String xml) throws IOException, StructureException
xml - String representing the alignmentIOExceptionStructureExceptionpublic static void rebuildAFPChain(AFPChain afpChain, Atom[] ca1, Atom[] ca2)
afpChain - ca1 - ca2 - public static AFPChain[] parseMultiXML(String xml) throws IOException
IOExceptionCopyright © 2000–2017 BioJava. All rights reserved.