Skip to content

Commit

Permalink
Add better error message when name is not a str
Browse files Browse the repository at this point in the history
  • Loading branch information
SeppeDeWinter committed Jan 29, 2024
1 parent 3fde1ce commit 81eb875
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycistarget/motif_enrichment_cistarget.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ def __init__(self,
Van de Sande B., Flerin C., et al. A scalable SCENIC workflow for single-cell gene regulatory network analysis.
Nat Protoc. June 2020:1-30. doi:10.1038/s41596-020-0336-2
"""
if type(name) != str:
raise ValueError('name should be a string, not {}'.format(type(name)))
self.region_set = region_set
self.name = name
self.specie = specie
Expand Down

0 comments on commit 81eb875

Please sign in to comment.