mgkit.filter.reads module

Some test functions to filter sequences

mgkit.filter.reads.expected_error_rate(qualities)[source]

Calculate the expected error rate for an array of qualities (converted to probabilities).

mgkit.filter.reads.trim_by_ee(qualities, min_length=50, threshold=0.5, chars=True, base=33)[source]

Trim a sequence based on the expected error rate.