aboutsummaryrefslogtreecommitdiff
path: root/gn3/computations
AgeCommit message (Collapse)Author
2021-07-20Implement the correlation functionMuriithi Frederick Muriuki
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * Implement the correlation computation function, such that it passes the tests created previously.
2021-07-20Add test for code to move over from GN1Muriithi Frederick Muriuki
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * .gitignore: ignore emacs temporary files * gn3/computations/correlations2.py: add a dummy function * tests/unit/computations/test_correlation.py: add unit tests for the function As part of the move of the clustering and heatmap code over from GN1 to GN3, this commit begins by providing some unit tests for the correlation function used to ensure that the implementation that is built up here corresponds, and produces the same results as the original. This tests and the function might change in the new system, but for now, we try and maintain bug-to-bug compatibility.
2021-06-29Replace list with a tuple as an argument when setting success_codesBonfaceKilz
* gn3/commands.py (run_cmd): Replace type of success_codes from List to Tuple * gn3/computations/diff.py (generate_diff): Pass success_codes as a Tuple when calling "run_cmd".
2021-06-29gn3: diff: Set success_codes when running the diff toolBonfaceKilz
2021-06-29Add a diffing functionBonfaceKilz
For now the diff function uses the Linux tool "diff" to generate the diff since it is efficient and straightforward. * gn3/computations/diff.py (generate_diff): New function. * tests/unit/computations/test_diff.py: Test cases for ☝🏾.
2021-06-23fix pylint issuesAlexander Kabui
2021-06-23minor fixes for biweight scriptAlexander Kabui
2021-06-20minor fix docstringAlexander Kabui
2021-06-20merge mainAlexander Kabui
2021-06-20make requested changes to biweightAlexander Kabui
2021-06-18Fixed pylint issueszsloan
2021-06-18Resolve mypy errors in computations/rqtl.pyzsloan
2021-06-18Fixed spelling of coeffient to coefficientzsloan
2021-06-18fix index error (#16)Alexander Kabui
2021-06-16add r-wgna packageAlexander Kabui
2021-06-16minor fixAlexander Kabui
2021-06-16refactor script and add testsAlexander Kabui
2021-06-16add fetch args functionAlexander Kabui
2021-06-15fix script path issuesAlexander Kabui
2021-06-14fix missing call to bicorAndPvalueAlexander Kabui
2021-06-14add biweight r script and testsAlexander Kabui
2021-05-30fix index error (#16)Alexander Kabui
2021-05-25Include code that processes rqtl output files and returns actual results ↵zsloan
instead of just the output filename
2021-05-19Temporarily replace forward-slashes with underscores, since they can be ↵zsloan
included in the hashes used for filenames
2021-05-18Fixed generate_rqtl_cmd to make the kwarg hash from a combination of ↵zsloan
keywords and arguments + account for boolean kwargs without values (like --interval or --covar)
2021-05-18Fixed variety of issues detected by pylintzsloan
2021-05-17Created compose_rqtl_command and generate_rqtl_command to create the actual ↵zsloan
command to be run from the command line; used the same pattern as for GEMMA for consistency
2021-05-15resolve merge conflictAlexander Kabui
2021-05-15Merge branch 'main' into feature/minor-fixesAlexander Kabui
2021-05-15index lit tuple resultAlexander Kabui
2021-05-13Rename file_utils to fs_helpersBonfaceKilz
Generally avoid naming things with a "utils" prefix/ suffix since it encourages contributors to dump any new functions there; and over time, as the code grows, things get messy...
2021-05-13computations: correlations: Apply pep-8BonfaceKilz
2021-05-12delete unused functionsAlexander Kabui
2021-05-12rename lit_correlation_for_trait_list to lit_correlation_for_traitAlexander Kabui
2021-05-12rename tissue_correlation_for_trait_list with tissue_correlation_for_traitAlexander Kabui
2021-05-12rename p_val ro tissue_p_value for tissue_resultsAlexander Kabui
2021-05-08Add extra procedure for parsing a genotype fileBonfaceKilz
* gn3/computations/parsers.py (parse_genofile): New procedure. * tests/unit/computations/test_parsers.py: New test files for above.
2021-05-03add default no of coresAlexander Kabui
2021-05-03add trait_id fix mypy issuesAlexander Kabui
2021-05-03minor fixes for tiss correlation tests and namingAlexander Kabui
2021-05-03replace database with connAlexander Kabui
2021-05-02delete dataset and trait filesAlexander Kabui
2021-04-20pep8 formattingAlexander Kabui
2021-04-20add experiment function for computing tissue correlation using multiprocessingAlexander Kabui
2021-04-18refactor:return trait_name in corr_resultsAlexander Kabui
2021-04-17ad pep8 formattingAlexander Kabui
2021-04-17add sort for correlation resultsAlexander Kabui
refactor return data type for tissue and lit
2021-04-16add benchmark function for sample rAlexander Kabui
2021-04-16benchmark normal function for sample rAlexander Kabui
2021-04-15optimization for sample correlationAlexander Kabui