Class AFPChainFlipper
- java.lang.Object
-
- org.biojava.nbio.structure.align.xml.AFPChainFlipper
-
public class AFPChainFlipper extends Object
-
-
Constructor Summary
Constructors Constructor Description AFPChainFlipper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AFPChain
flipChain(AFPChain o)
Flip the position of name1 and name2 (as well as all underlying data) in an AFPChain.
-
-
-
Constructor Detail
-
AFPChainFlipper
public AFPChainFlipper()
-
-
Method Detail
-
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
-
-