Age | Commit message (Expand) | Author |
2021-07-21 | Extract 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-20 | Implement 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-20 | Add 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-10 | gn3: db: Use correct type for columns arg in fetch functions | BonfaceKilz |
2021-07-10 | Fix pylint issues | BonfaceKilz |
2021-07-10 | gn3: db: Add extra argument to specify column in fetch statements | BonfaceKilz |
2021-07-10 | db: 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-29 | Replace 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-29 | gn3: diff: Set success_codes when running the diff tool | BonfaceKilz |
2021-06-29 | gn3: 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-29 | Add 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-25 | Check for the correct result code...When programs terminate with an error, they usually return a -1!
| BonfaceKilz |
2021-06-23 | fix pylint issues | Alexander Kabui |
2021-06-23 | minor fixes for biweight script | Alexander Kabui |
2021-06-20 | minor fix docstring | Alexander Kabui |
2021-06-20 | merge main | Alexander Kabui |
2021-06-20 | make requested changes to biweight | Alexander Kabui |
2021-06-18 | Fixed pylint issues | zsloan |
2021-06-18 | Resolve mypy errors in computations/rqtl.py | zsloan |
2021-06-18 | Fixed spelling of coeffient to coefficient | zsloan |
2021-06-18 | Rename json_data column to json_diff_data | BonfaceKilz |
2021-06-18 | gn3: db: Fix how columns from tables is resolved | BonfaceKilz |
2021-06-18 | gn3: db: Add "id_" property to metadata_audit class and mapping | BonfaceKilz |
2021-06-18 | gn3: db: Add "fetchall" method. | BonfaceKilz |
2021-06-18 | gn3: metadata_audit: Make props for MetadataAudit class optional | BonfaceKilz |
2021-06-18 | gn3: db: Make "WHERE" clause optional...* gn3/db/__init__.py (fetchone): Make "WHERE" an Optional arg.
| BonfaceKilz |
2021-06-18 | gn3: db: Use correct DATACLASSMAP entry from metadata_audit | BonfaceKilz |
2021-06-18 | gn3: db: sort imports | BonfaceKilz |
2021-06-18 | gn3: db: Remove "escape_string" from imports...We use prepared statements, so no need to have this.
| BonfaceKilz |
2021-06-18 | Use prepared statements for FETCH sql function | BonfaceKilz |
2021-06-18 | gn3: db: Replace items() with keys()...* gn3/db/__init__.py (diff_from_dict): We only use the keys of the dict!
| BonfaceKilz |
2021-06-18 | Use prepared statements for UPDATE sql function | BonfaceKilz |
2021-06-18 | gn3: db: Add new function for doing sql INSERT | BonfaceKilz |
2021-06-18 | Add data structures for the table metadata_audit | BonfaceKilz |
2021-06-18 | gn3: db: Add spacing before around "AND" in sql clause | BonfaceKilz |
2021-06-18 | Get the diff between 2 dicts and return that as a dict | BonfaceKilz |
2021-06-18 | gn3: db: Return None if data and where are empty | BonfaceKilz |
2021-06-18 | fix index error (#16) | Alexander Kabui |
2021-06-18 | Move the methods, "update" and "fetch", to gn3.db | BonfaceKilz |
2021-06-18 | db: phenotypes: Fix publication_mapping | BonfaceKilz |
2021-06-18 | db: phenotypes: Fix typo | BonfaceKilz |
2021-06-18 | db: phenotypes: Add function for fetching a single result...* gn3/db/phenotypes.py (fetchone): New function.
| BonfaceKilz |
2021-06-18 | db: phenotypes: Add a dataclass map...Maps a string to it's dataclass.
| BonfaceKilz |
2021-06-18 | db: phenotypes: Add Publication table mapping | BonfaceKilz |
2021-06-18 | db: phenotypes: Rename phenotype_column_mapping | BonfaceKilz |
2021-06-18 | db: phenotypes: Add Publication dataclass and mapping | BonfaceKilz |
2021-06-18 | db: phenotypes: Generalise the update function...* gn3/db/phenotypes.py (update_phenotype): Delete it.
(update): New, more general function.
| BonfaceKilz |
2021-06-18 | db: phenotypes: Map a table to it's relevant dict mapping | BonfaceKilz |
2021-06-18 | db: phenotypes: Add type for Dataclass...See: https://www.py4u.net/discuss/188952
| BonfaceKilz |
2021-06-18 | db: phenotypes: Put mapping def after dataclass | BonfaceKilz |