Previous topic

bioa.util.general.convert_networkx_to_read_graph

Next topic

bioa.util.general.reconstruct_sequence

This Page

bioa.util.general.are_consistent

are_consistent(read_one, read_two, overlap, error_tolerance=0)[source]

Checks if the two reads are consistent within the threshold.

Parameters :

read_one : str

First read whose tail must match.

read_two : str

The other read whose head must much.

overlap : int

The amount the reads overlap by.

error_tolerance : int (optional, default=0)

The number of allowable errors.

Returns :

are_consitent : bool

True if consistent, False otherwise.