aboutsummaryrefslogtreecommitdiff
path: root/gn3/settings.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-11-04 12:43:28 +0300
committerFrederick Muriuki Muriithi2021-11-04 12:43:28 +0300
commit9647226ea4c85449581df713c2bb583aeed6940f (patch)
tree15fa41d729552af2dac2843f91fa792241102061 /gn3/settings.py
parent0357f5c5e6eeb146eb259337019c87079363a256 (diff)
downloadgenenetwork3-9647226ea4c85449581df713c2bb583aeed6940f.tar.gz
Partially implement `partial_correlation_recursive`
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * gn3/computations/partial_correlations.py: Implement one path for the `gn3.computations.partial_correlations.partial_correlation_recursive` function. * gn3/settings.py: Add a setting for how many decimal places to round to * tests/unit/computations/test_partial_correlations.py: Update test to take the number of decimal places into consideration Implement a single path (where the z value is a vector and not a matrix) for the `partial_correlation_recursive` function.
Diffstat (limited to 'gn3/settings.py')
-rw-r--r--gn3/settings.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn3/settings.py b/gn3/settings.py
index 57c63df..eaf8f23 100644
--- a/gn3/settings.py
+++ b/gn3/settings.py
@@ -53,3 +53,5 @@ CORS_HEADERS = [
GNSHARE = os.environ.get("GNSHARE", "/gnshare/gn/")
TEXTDIR = f"{GNSHARE}/web/ProbeSetFreeze_DataMatrix"
+
+ROUND_TO = 10