aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations/rqtl.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-11-09 09:56:41 +0300
committerFrederick Muriuki Muriithi2021-11-09 09:56:41 +0300
commit9b590d894f1e68ca5d7d00cb6d268f7fb6e6730c (patch)
tree9722d6320312ca2728c69851e684bae0a144b56f /gn3/computations/rqtl.py
parent9647226ea4c85449581df713c2bb583aeed6940f (diff)
downloadgenenetwork3-9b590d894f1e68ca5d7d00cb6d268f7fb6e6730c.tar.gz
Fix bug: if three columns, ensure last is "z"
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * Fix a bug, caught when the function is called in a recursive form, with the "z*" columns reducing for each cycle through the recursive form. As it was, the last cycle through the recursive form would end up with a DataFrame with the columns "x", "y", and "z0" rather than the columns "x", "y", "z". This commit handles that edge case to ensure that the column name is changed from "z0" to simply "z".
Diffstat (limited to 'gn3/computations/rqtl.py')
0 files changed, 0 insertions, 0 deletions