ample.parsers.psipred_parser module

A parser object for Psipred Ss2 files

class PsipredSs2Parser(ss2file=None)[source]

Bases: object

Parser for psipred ss2 file

checkContent()[source]

Check the secondary structure composition

check_content()[source]

Check the secondary structure composition

getSecondaryStructure()[source]

Get the secondary structure content

parse(ss2file)[source]

Parse a secondary structure file

Parameters:ss2file (str) – The path to the Psipred ss2 file
secondary_structure

The secondary structure

Returns:The secondary structure one-letter codes
Return type:str