PreciseCorrelationFilter
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- class PreciseCorrelationFilter(corr_threshold: float = 0.7, p_threshold: float = 0.05)[source]
Bases:
objectPrior 2024 Spearman screen: signed r, p-value, keep the later column.
correlation_filteruses|r|and keeps the first column. This method copiesfiltering()in precise-habitats so a habitat spec can lock the same column rule as that paper’s published code.- Parameters:
corr_threshold – Signed Spearman cut-off; drop when r is greater.
p_threshold – Spearman p-value cut-off; drop only when p is smaller.