dual_threshold_optimization 2.0.1

Dual Threshold Optimization compares two ranked lists of features (e.g. genes) to determine the rank threshold for each list that minimizes the hypergeometric p-value of the overlap of features. It then calculates a permutation based empirical p-value and an FDR. Details can be found [in this paper](https://doi.org/10.1101/gr.259655.119)
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Traits for working with ranked feature lists.
use crate::collections::Feature;

/// A trait to retrieve a set of genes with ranks below or equal to a given threshold.
///
/// This trait provides a unified interface for accessing genes based on a rank threshold,
/// allowing the same logic to apply to different representations of ranked feature lists,
/// such as `RankedFeatureList` or `PermutedRankedFeatureList`.
pub trait FeatureSetProvider {
    fn get_feature_set_by_threshold(&self, threshold: u32) -> Vec<Feature>;
}