Class AfpChainWriter
- java.lang.Object
- 
- org.biojava.nbio.structure.align.model.AfpChainWriter
 
- 
 public class AfpChainWriter extends Object A class to convert the data in an AfpChain object to various String outputs.- Author:
- Andreas Prlic
 
- 
- 
Constructor SummaryConstructors Constructor Description AfpChainWriter()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidprintScoresInLines(AFPChain afpChain, int blockNum, int optLength, double totalRmsdOpt, double alignScore, int alnLength, int gapLen, double identity, double similarity, StringBuffer txt)static StringtoAlignedPairs(AFPChain afpChain, Atom[] ca1, Atom[] ca2)Prints the alignment in the simplest form: a list of aligned residues.static StringtoCE(AFPChain afpChain, Atom[] ca1, Atom[] ca2)static StringtoDBSearchResult(AFPChain afpChain)static StringtoFatCat(AFPChain afpChain, Atom[] ca1, Atom[] ca2)static StringtoFatCatCore(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean printLegend, boolean longHeader, boolean showHTML, boolean showAlignmentBlock)Output in FatCatCore formatstatic StringtoPrettyAlignment(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showHTML, boolean showAlignmentBlock)static StringtoRotMat(AFPChain afpChain)static StringtoScoresList(AFPChain afpChain)static StringtoWebSiteDisplay(AFPChain afpChain, Atom[] ca1, Atom[] ca2)Prints the afpChain as a nicely formatted alignment, including alignment statistics, the aligned sequences themselves, and information about the superposition.static StringtoWebSiteDisplay(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showAlignmentBlock)Prints the afpChain as a nicely formatted alignment, including alignment statistics, the aligned sequences themselves, and information about the superposition.
 
- 
- 
- 
Constructor Detail- 
AfpChainWriterpublic AfpChainWriter() 
 
- 
 - 
Method Detail- 
toScoresListpublic static String toScoresList(AFPChain afpChain) 
 - 
toFatCatCorepublic static String toFatCatCore(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean printLegend, boolean longHeader, boolean showHTML, boolean showAlignmentBlock) Output in FatCatCore formatNote that if a circular permutation has occured the residue numbers may be innaccurate. - Parameters:
- afpChain-
- ca1-
- ca2-
- printLegend-
- longHeader-
- showHTML-
- showAlignmentBlock-
- Returns:
 
 - 
printScoresInLinespublic static void printScoresInLines(AFPChain afpChain, int blockNum, int optLength, double totalRmsdOpt, double alignScore, int alnLength, int gapLen, double identity, double similarity, StringBuffer txt) 
 - 
toWebSiteDisplaypublic static String toWebSiteDisplay(AFPChain afpChain, Atom[] ca1, Atom[] ca2) Prints the afpChain as a nicely formatted alignment, including alignment statistics, the aligned sequences themselves, and information about the superposition.- Parameters:
- afpChain-
- ca1-
- ca2-
- Returns:
- a String representation as it is used on the RCSB PDB web site for display.
 
 - 
toWebSiteDisplaypublic static String toWebSiteDisplay(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showAlignmentBlock) Prints the afpChain as a nicely formatted alignment, including alignment statistics, the aligned sequences themselves, and information about the superposition.- Parameters:
- afpChain-
- ca1-
- ca2-
- Returns:
- a String representation as it is used on the RCSB PDB web site for display.
 
 - 
toPrettyAlignmentpublic static String toPrettyAlignment(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showHTML, boolean showAlignmentBlock) 
 - 
toAlignedPairspublic static String toAlignedPairs(AFPChain afpChain, Atom[] ca1, Atom[] ca2) Prints the alignment in the simplest form: a list of aligned residues. Format is one line per residue pair, tab delimited:- 1. PDB number. Includes insertion code
- 1. Chain.
- 1. Amino Acid. Three letter code.
- 2. PDB number.
- 2. Chain.
- 2. Amino Acid.
 152 A ALA 161S A VALNote that this format loses information about blocks. - Parameters:
- afpChain-
- ca1-
- ca2-
- Returns:
- a String representation of the aligned pairs.
 
 - 
toDBSearchResultpublic static String toDBSearchResult(AFPChain afpChain) 
 
- 
 
-