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
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Task {
    /// A unique identifier for the task (optional, useful for debugging or logging)
    pub id: usize,
    /// Whether this task should permute the data (true for permutations)
    pub permute: bool,
}