aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2021-07-21Extract tests from code in GN1...Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * gn3/computations/slink.py: Add dummy `nearest' function * tests/unit/computations/test_slink.py: Add some tests This commit adds tests to try and reproduce the working of the `nearest' function in: https://github.com/genenetwork/genenetwork1/blob/master/web/webqtl/heatmap/slink.py This commit might not yet have extracted all the expected behaviour of the `nearest' function, and therefore, there is a possibility of a later commit augmenting the work in this commit. Muriithi Frederick Muriuki
2021-07-20Implement the correlation function...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. Muriithi Frederick Muriuki
2021-07-20Add test for code to move over from GN1...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. Muriithi Frederick Muriuki
2021-07-10gn3: db: Use correct type for columns arg in fetch functionsBonfaceKilz
2021-07-10Fix pylint issuesBonfaceKilz
2021-07-10db: test_db: Test that a fetch is correct when columns are specifiedBonfaceKilz
2021-07-10gn3: db: Add extra argument to specify column in fetch statementsBonfaceKilz
2021-07-10db: phenotypes: Add Probeset data structures...* gn3/db/phenotypes.py (Probeset): New dataclass. (probeset_mapping): New dict. * gn3/db/__init__.py: Add probeset_mapping and Probeset. BonfaceKilz
2021-06-29Replace list with a tuple as an argument when setting success_codes...* 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". BonfaceKilz
2021-06-29guix: Add diffutils as a propagated inputBonfaceKilz
2021-06-29guix: Remove commented out hunkBonfaceKilz
2021-06-29gn3: diff: Set success_codes when running the diff toolBonfaceKilz
2021-06-29gn3: commands: Add extra arg that sets the success codes to check...* gn3/commands.py (run_cmd): Some commands like "diff" return non-standard error codes. To make this fn more robust, add an extra optional argument that sets what successful codes to check. BonfaceKilz
2021-06-29tests: test_commands: Add extra check for when an error occursBonfaceKilz
2021-06-29Add a diffing function...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 ☝🏾. BonfaceKilz
2021-06-29tests: test_data: Add test data that contains trait data for 10007BonfaceKilz
2021-06-25Check for the correct result code...When programs terminate with an error, they usually return a -1! BonfaceKilz
2021-06-23Merge pull request #21 from genenetwork/fix/biweight-errors...Fix/biweight errorsBonfaceKilz
2021-06-23fix pylint issuesAlexander Kabui
2021-06-23minor fixes for biweight scriptAlexander Kabui
2021-06-22scripts: laminar: Add json with hooks for running a linterBonfaceKilz
2021-06-22scripts: laminar: Add sh scripts for CIBonfaceKilz
2021-06-21Merge pull request #20 from genenetwork/feature/biweight-correlation...add biweight r script and testsBonfaceKilz
2021-06-20minor fix docstringAlexander Kabui
2021-06-20merge mainAlexander Kabui
2021-06-20fix conflictAlexander Kabui
2021-06-20make requested changes to biweightAlexander Kabui
2021-06-18Merge pull request #13 from zsloan/feature/add_rqtl_endpoints...Feature/add rqtl endpointszsloan
2021-06-18Fixed another error where test_generate_rqtl_command didn't include the filen...zsloan
2021-06-18Fixed file type from json to csv for test_generate_rqtl_commandzsloan
2021-06-18Fixed test_rqtl.py to include Rscript in the commandzsloan
2021-06-18Fixed test_compose_rqtl_command test; forgot to include Rscript in the commandzsloan
2021-06-18Change test_compose_rqtl_command in test_commands.py to have different argume......Changed some parameters in test_compose_rqtl_cmd to avoid pylint complaining about duplicate code zsloan
2021-06-18Fixed pylint issueszsloan
2021-06-18add ignore_missing_imports for numpy in mypy.ini since it complains about tha...zsloan
2021-06-18Resolve mypy errors in computations/rqtl.pyzsloan
2021-06-18Fixed spelling of coeffient to coefficientzsloan
2021-06-18minor fixesAlexander Kabui
2021-06-18remove ununsed variablesAlexander Kabui
2021-06-18refactor perf query functionsAlexander Kabui
2021-06-18rename perf query fileAlexander Kabui
2021-06-18pep8 formattingAlexander Kabui
2021-06-18add tests to setup packagesAlexander Kabui
2021-06-18add types and dataset namesAlexander Kabui
2021-06-18initial commit for queries perfomance testsAlexander Kabui
2021-06-18db: test_db: Add extra variable in test data for "id"BonfaceKilz
2021-06-18Rename json_data column to json_diff_dataBonfaceKilz
2021-06-18gn3: db: Fix how columns from tables is resolvedBonfaceKilz
2021-06-18gn3: db: Add "id_" property to metadata_audit class and mappingBonfaceKilz
2021-06-18tests: test_db: Add a test-case for fetchallBonfaceKilz