aboutsummaryrefslogtreecommitdiff
path: root/gn3/data_helpers.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-11-12 03:56:01 +0300
committerFrederick Muriuki Muriithi2021-11-12 03:56:01 +0300
commitd895eea22ab908c11f4ebb77f99518367879b1f6 (patch)
tree340c45791be8d9952bfd477e909066456c52e041 /gn3/data_helpers.py
parenteec4cd566c1aceb5bd3e392595c38893bde8192b (diff)
downloadgenenetwork3-d895eea22ab908c11f4ebb77f99518367879b1f6.tar.gz
Pass in parser function for flexibility
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * To improve the usefulness of already existing code, provide the parser function as an argument to the `parse_input_line` function. This was found to be useful when writing code to compare the `pcor.test` function in GN1 and the `pingouin.partial_corr` function. The format of the data generated when getting results for the `pcor.test` function shared a lot with that of the `pcor.rec` function, but it was different in a few, places, and the differences were non-trivial, needing different parsing processes. In such a case, it was found necessary to just pass in the function to do the actual parsing, rather than create code with the same form as the existing one, save for the function being called.
Diffstat (limited to 'gn3/data_helpers.py')
0 files changed, 0 insertions, 0 deletions