Output
- class enzymm.output.BaseTable(matches: List[Match])
A base class for different types of output styles. Easily adaptable
- dumps(header: bool = False) str
Dump
Matchto a string. CallsMatch.dump()- Parameters:
header – if a header line should be dumped to the string too.
- classmethod from_matches(matches: Iterable[Match]) BaseTable
Generate the table from a list of Match
- to_polars() polars.DataFrame
Create a
polars.DataFramefrom this table.- Returns:
polars.DataFramewith the schema set out in the child class!
Note
Calling this function requires the polars library!
- class enzymm.output.FullMatchTable(matches: List[Match])
A class for representing the full information associated with EnzyMM matches.
- class Row(match: Match)
Subclass for defining and building a row in a
FullMatchTable
- classmethod from_match(match: Match) Iterable[FullMatchTable.Row]
Create a row per match for a
FullMatchTable- Returns:
IteralbeofFullMatchTable.Row
- class enzymm.output.MatchResidueTable(matches: List[Match])
A class for representing residue mappings between query, template and reference from EnzyMM matches.
- class Row(q_res: Tuple[str, str, str], t_res: AnnotatedResidue, match: Match)
Subclass for defining and building a row in a
MatchResidueTable
- classmethod from_match(match: Match) Iterable[MatchResidueTable.Row]
Create one row per matched residue in the match for a
MatchResidueTable- Returns:
IteralbeofMatchResidueTable.Row
- class enzymm.output.SimpleMatchTable(matches: List[Match])
A class for representing the simpler information associated with EnzyMM matches.
- class Row(match: Match)
Subclass for defining and building a row in a
SimpleMatchTable
- classmethod from_match(match: Match) Iterable[SimpleMatchTable.Row]
Create a row per match for a
SimpleMatchTable- Returns:
IteralbeofSimpleMatchTable.Row
- class enzymm.output.Tables
A class for creating instances of children of
BaseTableof the selected kind- classmethod create(kind: Literal['full'], matches: Iterable[Match]) FullMatchTable
- classmethod create(kind: Literal['simple'], matches: Iterable[Match]) SimpleMatchTable
- classmethod create(kind: Literal['residue'], matches: Iterable[Match]) MatchResidueTable
Create an instance of the selected kind of table from a list of matches