diff options
| author | Frederick Muriuki Muriithi | 2025-02-28 13:14:58 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-02-28 13:14:58 -0600 |
| commit | 82f1d0da007019d949a39408c45425e00b22aa34 (patch) | |
| tree | aa6ed8bba4336317621043a3e1e7edc30433c6bf /gn3/computations | |
| parent | f3a6c0adc3e5cb78c1a663fc686f00853729b5d7 (diff) | |
| download | genenetwork3-82f1d0da007019d949a39408c45425e00b22aa34.tar.gz | |
Fix issues caught by mypy.
Diffstat (limited to 'gn3/computations')
| -rw-r--r-- | gn3/computations/correlations.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gn3/computations/correlations.py b/gn3/computations/correlations.py index e5934b6..95bd957 100644 --- a/gn3/computations/correlations.py +++ b/gn3/computations/correlations.py @@ -6,6 +6,7 @@ from multiprocessing import Pool, cpu_count from typing import List from typing import Tuple +from typing import Sequence from typing import Optional from typing import Callable from typing import Generator @@ -52,8 +53,10 @@ def normalize_values(a_values: List, b_values: List) -> Generator: yield a_val, b_val -def compute_corr_coeff_p_value(primary_values: List, target_values: List, - corr_method: str) -> Tuple[float, float]: +def compute_corr_coeff_p_value( + primary_values: Sequence, + target_values: Sequence, + corr_method: str) -> Tuple[float, float]: """Given array like inputs calculate the primary and target_value methods -> pearson,spearman and biweight mid correlation return value is rho and p_value |
