Hey. Is there quick way (biopython or something) to retrive secondary structure from dssp file?

eg 'HHHHHHHHHHEEEEEEEEEEEECCCCCCCCHHHHHHEEEEEEEEE'

I need to get SS by pdb id and build FASTA like records

    >3gja
    HHHHHHHHHHEEEEEEEEEEEECCCCCCCCHHHHHHEEEEEEEEE
    >3akl
    CCCCCCCCCCCCEEEEEEEEEEEHHHHHHHHHHEEEEEEEEEEEECCCCCCCCHHHHHHEEEEEEEEE
    ...


Here is Biopython's [**DSSP code**][1], with typical use shown near the top. It is not difficult to extract this information on your own by reading contents of column 17 of the DSSP output, following this line:

      #  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

You may want to convert the 8-letter designation utilized by DSSP into 3 letters - space (or empty character `''`) is considered to be `C`. Typical conversion schemes are:

    SS-Scheme 1: H,G,I->H ; E,B->E ; T,S->C
    SS-Scheme 2: H,G->H ; E,B->E ; I,T,S->C    I think this is most common
    SS-Scheme 3: H,G->H ; E->E ; I,B,T,S->C
    SS-Scheme 4: H->H ; E,B->E ; G,I,T,S->C
    SS-Scheme 5: H->H ; E->E ; G,I,B,T,S->C


  [1]: https://github.com/biopython/biopython/blob/master/Bio/PDB/DSSP.py