lueckenlab / patpy

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Too strict filtering of cell types in pp.filter_small_cell_types #45

Open VladimirShitov opened 1 year ago

VladimirShitov commented 1 year ago

Description of feature

Currently, all cell types where the number of cells is less than threshold in at least 1 sample are removed. This leads to a huge loss of cell types (e.g., one small sample lacking a cell type causes the complete drop of this cell type). Chris suggested more flexible option with another threshold on the number or fraction of samples that should contain a cell type