scviva.tools.vision.filter_genes_threshold#

scviva.tools.vision.filter_genes_threshold(X, threshold=10)[source]#

Keep genes expressed (count > 0) in at least threshold cells.

Parameters:
X ndarray | spmatrix

Expression matrix, cells × genes.

threshold int

Minimum number of cells a gene must be expressed in, by default 10.

Return type:

ndarray

Returns:

np.ndarray Boolean mask of shape (n_genes,); True for genes that pass.