aboutsummaryrefslogtreecommitdiff
path: root/gn3
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-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-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-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-25Check for the correct result code...When programs terminate with an error, they usually return a -1! BonfaceKilz
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-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-18gn3: db: Add "fetchall" method.BonfaceKilz
2021-06-18gn3: metadata_audit: Make props for MetadataAudit class optionalBonfaceKilz
2021-06-18gn3: db: Make "WHERE" clause optional...* gn3/db/__init__.py (fetchone): Make "WHERE" an Optional arg. BonfaceKilz
2021-06-18gn3: db: Use correct DATACLASSMAP entry from metadata_auditBonfaceKilz
2021-06-18gn3: db: sort importsBonfaceKilz
2021-06-18gn3: db: Remove "escape_string" from imports...We use prepared statements, so no need to have this. BonfaceKilz
2021-06-18Use prepared statements for FETCH sql functionBonfaceKilz
2021-06-18gn3: db: Replace items() with keys()...* gn3/db/__init__.py (diff_from_dict): We only use the keys of the dict! BonfaceKilz
2021-06-18Use prepared statements for UPDATE sql functionBonfaceKilz
2021-06-18gn3: db: Add new function for doing sql INSERTBonfaceKilz
2021-06-18Add data structures for the table metadata_auditBonfaceKilz
2021-06-18gn3: db: Add spacing before around "AND" in sql clauseBonfaceKilz
2021-06-18Get the diff between 2 dicts and return that as a dictBonfaceKilz
2021-06-18gn3: db: Return None if data and where are emptyBonfaceKilz
2021-06-18fix index error (#16)Alexander Kabui
2021-06-18Move the methods, "update" and "fetch", to gn3.dbBonfaceKilz
2021-06-18db: phenotypes: Fix publication_mappingBonfaceKilz
2021-06-18db: phenotypes: Fix typoBonfaceKilz
2021-06-18db: phenotypes: Add function for fetching a single result...* gn3/db/phenotypes.py (fetchone): New function. BonfaceKilz
2021-06-18db: phenotypes: Add a dataclass map...Maps a string to it's dataclass. BonfaceKilz
2021-06-18db: phenotypes: Add Publication table mappingBonfaceKilz
2021-06-18db: phenotypes: Rename phenotype_column_mappingBonfaceKilz
2021-06-18db: phenotypes: Add Publication dataclass and mappingBonfaceKilz
2021-06-18db: phenotypes: Generalise the update function...* gn3/db/phenotypes.py (update_phenotype): Delete it. (update): New, more general function. BonfaceKilz
2021-06-18db: phenotypes: Map a table to it's relevant dict mappingBonfaceKilz
2021-06-18db: phenotypes: Add type for Dataclass...See: https://www.py4u.net/discuss/188952 BonfaceKilz
2021-06-18db: phenotypes: Put mapping def after dataclassBonfaceKilz