Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
add tests for overlapping peptides
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianegli authored Nov 1, 2023
1 parent 579b923 commit cbc13d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/diann_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit cbc13d3

Please sign in to comment.