Skip to content

Commit

Permalink
allow 0 edit counts
Browse files Browse the repository at this point in the history
  • Loading branch information
jykr committed Aug 26, 2024
1 parent 3b40968 commit c5ac7ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bean/framework/ReporterScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ def get_edit_mat_from_uns(
reporter_length = self.uns["reporter_length"]
if "reproter_right_flank_length" in self.uns:
reporter_right_flank_length = self.uns["reporter_right_flank_length"]
if edit_count_key not in self.uns or len(self.uns[edit_count_key]) == 0:
if edit_count_key not in self.uns:
raise ValueError(
"Edit count isn't calculated. "
f"Edit count isn't calculated or not provided with specified key `{edit_count_key}`. "
+ "Call .get_edit_from_allele(allele_count_key, allele_key)"
)
edits = self.uns[edit_count_key].copy()
Expand Down

0 comments on commit c5ac7ad

Please sign in to comment.