public String printDSSP ( ) { StringBuffer buf = new StringBuffer ( ) ; String nl = System . getProperty ( "line.separator" ) ; //Header Line buf . append ( "==== Secondary Structure Definition by BioJava" + " DSSP implementation, Version October 2015 ====" + nl ) ; //First line with column definition buf . append ( " # RESIDUE AA STRUCTURE BP1 BP2 ACC " + "N-H-->O O-->H-N N-H-->O O-->H-N " + "TCO KAPPA ALPHA PHI PSI " + "X-CA Y-CA Z-CA " ) ; for ( int i = 0 ; i < groups . length ; i ++ ) { buf . append ( nl ) ; SecStrucState ss = getSecStrucState ( i ) ; buf . append ( ss . printDSSPline ( i ) ) ; } return buf . toString ( ) ; }
Generate a DSSP file format ouput String of this SS prediction .