aboutsummaryrefslogtreecommitdiff
path: root/uploader/phenotypes/models.py
AgeCommit message (Expand)Author
5 daysUse positional parameters rather than named ones.•••Named parameters were causing problems on staging, where the names would be converted into bytestrings and then used to index into the dictionaries, leading to `KeyError` exceptions. Frederick Muriuki Muriithi
2025-06-10Bug: Fix logging.Frederick Muriuki Muriithi
2025-06-03Save data with `LOAD DATA INFILE …` query•••To help speed up the saving of the data (for really huge files) into the database, use the `LOAD DATA INFILE …` command if available, and if not fallback to the one using raw queries. Frederick Muriuki Muriithi
2025-06-03Increase number of rows per query.Frederick Muriuki Muriithi
2025-06-03Debug the query: useful to figure out what's happening.Frederick Muriuki Muriithi
2025-06-03Memory saving: Don't reload saved data•••We already have all the data in memory, so we do not need to reload it and keep yet another copy. Frederick Muriuki Muriithi
2025-06-02Add some debugging statements.Frederick Muriuki Muriithi
2025-06-02Parametrize the "DataId" column for different tables.Frederick Muriuki Muriithi
2025-06-02Explicitly query for newly entered data.•••The `cursor.executemany()` call only returned the last row that was inserted, rather than ALL the rows. This is not the correct thing to do, therefore, this commit fixes that by explicitly querying for all the newly entered data. Frederick Muriuki Muriithi
2025-05-30Fix typo: Fix table name.Frederick Muriuki Muriithi
2025-05-30Bug: Loop until the data is exhausted.Frederick Muriuki Muriithi
2025-05-30Fix typo, and bug.Frederick Muriuki Muriithi
2025-05-30Fix indentation.Frederick Muriuki Muriithi
2025-05-30Use full table names rather than aliases•••Using aliases leads to errors when you have to use table locking to prevent data corruption. This commit updates queries to use the full table names rather than aliases, in order to prevent such troubles. Frederick Muriuki Muriithi
2025-05-19Add function to save the numerical data for phenotypes.Frederick Muriuki Muriithi
2025-05-05Save/Create new phenotypes in the database.Frederick Muriuki Muriithi
2025-04-21Use module-specific logger.Frederick Muriuki Muriithi
2025-04-21Add "DataId" to top-level trait details.•••The `DataId` is unique in the `PublishXRef` table. Frederick Muriuki Muriithi
2025-03-21Add "PubMed_ID" field•••The "PubMed_ID" field allows the user to edit the publication that's attached to each phenotype trait. Frederick Muriuki Muriithi
2025-03-18Enable downloading of dataset's phenotype's data.Frederick Muriuki Muriithi
2025-03-17Include InbredSetId: Useful for querying data.Frederick Muriuki Muriithi
2025-01-29Update field name.•••Use "xref_id" rather than "pxr.Id" since the former is a little clearer. Frederick Muriuki Muriithi
2025-01-27Fix bug in how the SE and N values for a phenotype are fetched.Frederick Muriuki Muriithi
2025-01-25Add function to retrieve a phenotype's publication data.Frederick Muriuki Muriithi
2025-01-25Add the "StrainId" field to phenotype data rows.Frederick Muriuki Muriithi
2024-11-22Use gn-libs code for db connection.•••Use the code in gn-libs to connect to the database, rather than a local module. Frederick Muriuki Muriithi
2024-10-07Create new phenotype dataset (PublishFreeze).•••Provide the UI and code to create a new phenotype dataset. Frederick Muriuki Muriithi
2024-09-30BugFix: Ensure all data items show up.Frederick Muriuki Muriithi
2024-09-30Initialise views for a specific phenotype•••Each phenotype is independent, of all others, and they are only put into datasets mostly for easy coralling of phenotypes related to a specific populations. As such, the system will probably need to provide a way to view (and possibly edit) each phenotype independent of all the others. This also fits in with the auth. Frederick Muriuki Muriithi
2024-09-27Remove unused placeholders for now.Frederick Muriuki Muriithi
2024-09-27Improve query for fetching a phenotype dataset's dataFrederick Muriuki Muriithi
2024-09-27Show some details for a phenotype dataset.Frederick Muriuki Muriithi
2024-09-26Start building up the view dataset endpointFrederick Muriuki Muriithi
2024-09-26List the phenotype datasets.Frederick Muriuki Muriithi