Class AFPChainXMLParser
java.lang.Object
org.biojava.nbio.structure.align.xml.AFPChainXMLParser
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
flipAlignment
(String xml) Takes an XML representation of the alignment and flips the positions of name1 and name2static AFPChain
new utility method that checks that the order of the pair in the XML alignment is correct and flips the direction if neededstatic AFPChain
static boolean
isErrorXML
(String xml) returns true if the alignment XML contains an error messagestatic AFPChain[]
parseMultiXML
(String xml) static void
rebuildAFPChain
(AFPChain afpChain, Atom[] ca1, Atom[] ca2) replace the PDB res nums with atom positions:
-
Field Details
-
DEFAULT_ALGORITHM_NAME
- See Also:
-
-
Constructor Details
-
AFPChainXMLParser
public AFPChainXMLParser()
-
-
Method Details
-
fromXML
public static AFPChain fromXML(String xml, String name1, String name2, Atom[] ca1, Atom[] ca2) throws IOException, StructureException new utility method that checks that the order of the pair in the XML alignment is correct and flips the direction if needed- Parameters:
xml
-name1
-name1
-ca1
-ca2
-- Returns:
- Throws:
IOException
StructureException
-
fromXML
- Throws:
IOException
-
isErrorXML
returns true if the alignment XML contains an error message- Parameters:
xml
-- Returns:
- flag if there was an Error while processing the alignment.
-
flipAlignment
Takes an XML representation of the alignment and flips the positions of name1 and name2- Parameters:
xml
- String representing the alignment- Returns:
- XML representation of the flipped alignment
- Throws:
IOException
StructureException
-
rebuildAFPChain
replace the PDB res nums with atom positions:- Parameters:
afpChain
-ca1
-ca2
-
-
parseMultiXML
- Throws:
IOException
-