Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
abearab committed Dec 20, 2023
1 parent 4598646 commit 8c66933
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions screenpro/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@


def find_low_counts(adata, filter_type='either', minimum_reads=50):
# Do you require greater than or equal to the minimum reads
# for both experiments in a comparison or either experiment?
# Default is either, other option is all
"""
Label variables with low counts in either or all samples.
Args:
adata: AnnData object
filter_type: either or all
minimum_reads:
Returns: it's adding a True/False column to `adata.var['low_count']`
None
"""
count_bin = adata.X >= minimum_reads
if filter_type == 'either':
out = adata[:, count_bin.any(axis=0)].copy()
Expand Down

0 comments on commit 8c66933

Please sign in to comment.