segmentation.chainsaw

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

class segmentation.chainsaw.Parser(csv_path)[source]

Bases: segmentation.SegmentationParser

The base class for all segmentation parsers.

parse() collections.abc.Iterator[Tuple[str, int, str]][source]

The return value is a collection of items of the form:

("<method name>", <number of domains>, "<chopping>")

They could be collected into a list or yield-ed. The write_segmentations() function only expects that this method returns an iterable object.

segmentation.chainsaw._read_csv_rows(path, **kwargs)[source]