Skip to content

Commit

Permalink
Add error message when regulons file is empty
Browse files Browse the repository at this point in the history
- Resolves #133
  • Loading branch information
cflerin committed May 18, 2020
1 parent 0ef0119 commit e83cda9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pyscenic/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ def df2regulons(df, save_columns=[]) -> Sequence[Regulon]:
:return: A sequence of regulons.
"""

assert not df.empty, 'Signatures dataframe is empty!'
print("Create regulons from a dataframe of enriched features.")
print("Additional columns saved: {}".format(save_columns))

Expand Down

0 comments on commit e83cda9

Please sign in to comment.