From cbc13d33bec26d843294b607aa30dc64454d67d9 Mon Sep 17 00:00:00 2001 From: Fabian Egli Date: Wed, 1 Nov 2023 14:53:46 +0100 Subject: [PATCH] add tests for overlapping peptides --- bin/diann_convert.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/diann_convert.py b/bin/diann_convert.py index ead4d522..498a00f5 100755 --- a/bin/diann_convert.py +++ b/bin/diann_convert.py @@ -1254,6 +1254,10 @@ def calculate_coverage(ref_sequence: str, sequences: Set[str]): 1.0 >>> calculate_coverage("WATERGLASS", {"WAT", "TER"}) 0.5 + >>> calculate_coverage("WATER", {"WAT", "TER"}) + 1.0 + >>> calculate_coverage("WATERGLASS", {"WAT", "TER"}) + 0.5 """ starts = [] lengths = []