segmentation.chainsaw ===================== .. py:module:: segmentation.chainsaw .. autoapi-nested-parse:: Chainsaw predicts domain segmentation based on a deep learning model. It uses the ``stride`` tool to determine secondary structure, and produces a TSV file with a description of the output. Source: https://github.com/JudeWells/Chainsaw Module Contents --------------- .. py:class:: Parser(csv_path) Bases: :py:obj:`segmentation.SegmentationParser` The base class for all segmentation parsers. .. py:method:: parse() -> collections.abc.Iterator[Tuple[str, int, str]] The return value is a collection of items of the form:: ("", , "") They could be collected into a list or yield-ed. The :func:`write_segmentations` function only expects that this method returns an iterable object. .. py:function:: _read_csv_rows(path, **kwargs)