diff options
author | Frederick Muriuki Muriithi | 2021-11-12 03:56:01 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2021-11-12 03:56:01 +0300 |
commit | d895eea22ab908c11f4ebb77f99518367879b1f6 (patch) | |
tree | 340c45791be8d9952bfd477e909066456c52e041 /gn3/computations/slink.py | |
parent | eec4cd566c1aceb5bd3e392595c38893bde8192b (diff) | |
download | genenetwork3-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/computations/slink.py')
0 files changed, 0 insertions, 0 deletions