aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-11-23 12:34:44 +0300
committerFrederick Muriuki Muriithi2021-11-23 12:34:44 +0300
commitdf4ed9183f3efd89d54bba1a144c48475f4b8169 (patch)
tree4de20fefe37d9f28030d1e7795888e4676e4438a /gn3/computations
parent845ab7696cdd7c7b2cdbd9b2b7f6b0a537d81117 (diff)
downloadgenenetwork3-df4ed9183f3efd89d54bba1a144c48475f4b8169.tar.gz
Fix a myriad of linting errors
* Fix linting errors like: - Unused variables - Undeclared variable errors (mostly caused by typos, and wrong names) - Missing documentation strings for functions etc.
Diffstat (limited to 'gn3/computations')
-rw-r--r--gn3/computations/partial_correlations.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gn3/computations/partial_correlations.py b/gn3/computations/partial_correlations.py
index 4bd26a2..f43c4d4 100644
--- a/gn3/computations/partial_correlations.py
+++ b/gn3/computations/partial_correlations.py
@@ -200,11 +200,13 @@ def good_dataset_samples_indexes(
samples_from_file.index(good) for good in
set(samples).intersection(set(samples_from_file))))
-def compute_partial_correlations_fast(# pylint: disable=[R0913, R0914]
+def partial_correlations_fast(# pylint: disable=[R0913, R0914]
samples, primary_vals, control_vals, database_filename,
fetched_correlations, method: str, correlation_type: str) -> Tuple[
float, Tuple[float, ...]]:
"""
+ Computes partial correlation coefficients using data from a CSV file.
+
This is a partial migration of the
`web.webqtl.correlation.PartialCorrDBPage.getPartialCorrelationsFast`
function in GeneNetwork1.