aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-18pep8 formattingAlexander_Kabui
2024-03-18delete test fileAlexander_Kabui
2024-03-18fetch pubmed data from tmpdirAlexander_Kabui
2024-03-18pep8 formattingAlexander_Kabui
2024-03-15add pubmed metadataAlexander_Kabui
2024-03-15add error handling for invalid tokensAlexander_Kabui
2024-03-15Remove ALL html templates from GeneNetwork3Frederick Muriuki Muriithi
GN3 provides an API to provide data, and needs no HTML UI.
2024-03-13Add documentation on what the script is for and does.Frederick Muriuki Muriithi
2024-03-13Remove debug prints in the scriptFrederick Muriuki Muriithi
2024-03-12Commit migration script for CaseAttribute* tablesFrederick Muriuki Muriithi
2024-03-04Check for exception args and provide traceback.Frederick Muriuki Muriithi
2024-03-04Handle generic exceptions gracefully.Frederick Muriuki Muriithi
2024-02-25Disable too-many-arguments for "run_reaper".Munyoki Kilyungi
* gn3/computations/qtlreaper.py: Disable "too-many-arguments" pylint check. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-25Fix line-too-long error.Munyoki Kilyungi
* gn3/heatmaps.py (build_heatmap): Break down call to run_reaper command into many lines to fix pylint error. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-25Correctly handle URLError.Munyoki Kilyungi
Using the `internal_server_error` function to handle URLError raised an exception because the `pnf` exception did not have some attributes. * gn3/errors.py (url_server_error): New function. (register_error_handlers): Register above function to handle URLError. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-25Construct genofile_path using pathlib module.Munyoki Kilyungi
* gn3/db/datasets.py: Remove os import. (retrieve_sample_list): Replace os.path with Path. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-19Pass qtlreaper command path as argument to run_reaperzsloan
Originally the system would get the path from the environment
2024-02-15Use correct names for dataset entries in json result.Munyoki Kilyungi
Since we are appending to an already flattened json-ld file, we don't need to add the prefixes. * gn3/api/metadata.py (DATASET_CONTEXT): Add missing "experimentType" key. * gn3/db/datasets.py (retrieve_dataset_metadata): Match the __subject dict with entries from DATASET_CONTEXT. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-14Delete type hints from handle_sparql_errors.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-14Delete trailing space.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-14Remove try ... except clauses around RDF endpoints.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-14Minor pep-8 fixes.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-14Handle sparql errors at the app level.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-14raise error for fahamu api 0 task_idAlexander_Kabui
2024-02-14Stem the dataset's id before constructing the path.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-13Use correct path for dataset metadata files.Munyoki Kilyungi
* gn3/api/metadata.py (datasets): Use "gn-docs/general/datasets". Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-13Fetch extra metadata from text-files when fetching datasets.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-13Update "dataset/<name>" API endpoint to fetch metadata from files.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-13Retrieve metadata from text files given a path.Munyoki Kilyungi
* gn3/db/datasets.py (retrieve_trait_dataset): New file. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-02-12pep8 formattingAlexander_Kabui
2024-01-30Add the traceback to the exceptions for display.Frederick Muriuki Muriithi
2024-01-26centralize common errorsAlexander_Kabui
2024-01-26Feature/gn llm caching (#148)Alexander Kabui
* add logic for querying user gnqa search result * add api endpoints for querying users:qnqa-search-terms,gnqa-results
2024-01-17fix error message for empty responsesAlexander_Kabui
2024-01-17Adjust retry parameters and response handling in custom_requestAlexander_Kabui
2024-01-17Increase timeout to 30s to fix 'Read timed out issueAlexander_Kabui
2024-01-17Enhance error response message in API endpointAlexander_Kabui
2024-01-17max no of retries for user to fahamu apiAlexander_Kabui
2024-01-17fix pylint errorsAlexander_Kabui
2024-01-17temp fix:disable pylint checkAlexander_Kabui
2024-01-17Refactor llms.process: Rename getGNQA to get_gnqaAlexander_Kabui
2024-01-17Feature/gn llm refactoring (#147)Alexander Kabui
* refactor code for processing response from fahamu client * Add tests for gn-llm
2024-01-16add api endpoint for rating reference documents (#146)Alexander Kabui
2024-01-10Add extra pylint rule to except files that are too long.Munyoki Kilyungi
* .pylintrc (disable): Include "too-many-lines" rule in the list of exceptions. The RDF queries are lengthy, causing lines in files to be too long. Currently, a workaround is to disable this rule, as abstracting the queries elsewhere doesn't make sense. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-01-10Optionally fetch dataset metadata if provided during genotype fetch.Munyoki Kilyungi
* gn3/api/metadata.py (genotypes): If a dataset name is provided fetch the group it belongs to and the dataset's full and short name. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-01-10Switch to gnt:belongsToSpecies in genotype queries.Munyoki Kilyungi
* gn3/api/metadata.py (genotypes): Use gnt:belongsToSpecies instead of xkos:classifiedUnder when querying for species. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-01-10Remove hard-coded dataset name.Munyoki Kilyungi
* gn3/api/metadata.py (probesets): Remove hard-coded "HC_M2_0606_P" in probeset RDF query. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-01-08merge for latest commitsAlexander_Kabui
2024-01-08fix query formatting and increase no retriesAlexander_Kabui
2024-01-08Optionally fetch dataset metadata if provided during probeset fetch.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>