org.biojava.bio.structure.align.xml
Class AFPChainFlipper
java.lang.Object
org.biojava.bio.structure.align.xml.AFPChainFlipper
public class AFPChainFlipper
- extends Object
Method Summary |
static AFPChain |
flipChain(AFPChain o)
Flip the position of name1 and name2 (as well as all underlying data) in an AFPChain. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AFPChainFlipper
public AFPChainFlipper()
flipChain
public static AFPChain flipChain(AFPChain o)
throws StructureException
- Flip the position of name1 and name2 (as well as all underlying data) in an AFPChain.
This is a utility function for AFPChainXMLParser.
You will have to call AFPCHainXMLParser.rebuildAFPChain in order to get twisted groups...
- Parameters:
o
- ... the original AFPCHain that should be flipped
- Returns:
- a cloned AFPCHain which the positions of name1 and name2 flipped.
- Throws:
StructureException