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 Jul 17, 2020
1 parent c73e44b commit 08e2bbc
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 08e2bbc

Please sign in to comment.