decoupler.filt_min_n
- decoupler.filt_min_n(c, net, min_n=5)
Removes sources of a net with less than min_n targets.
First it filters target features in net that are not in mat and then removes sources with less than min_n targets.
- Parameters:
- cndarray
Column names of mat.
- netDataFrame
Network in long format.
- min_nint
Minimum of targets per source. If less, sources are removed.
- Returns:
- netDataFrame
Filtered net in long format.