Skip to content

Commit

Permalink
ensure empty samples / features are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronmartino committed Jun 13, 2024
1 parent 87c7bb1 commit a68b5a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gemelli/rpca.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,8 @@ def frequency_filter(val, id_, md):
raise ValueError('Data-table contains duplicate sample IDs')
if len(table.ids('observation')) != len(set(table.ids('observation'))):
raise ValueError('Data-table contains duplicate feature IDs')
# ensure empty samples / features are removed
table = table.remove_empty()

return table

Expand Down

0 comments on commit a68b5a6

Please sign in to comment.