aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set/dataset.py
AgeCommit message (Expand)Author
2022-12-01Fix Exception that's raised when query_sql returns None...* wqflask/base/data_set/dataset.py: Delete itertools, DictCursor. (DataSet.get_accession_id): Handle a case where query_sql returns a None value. Munyoki Kilyungi
2022-11-30Remove check for shortnames/fullnames in probeset metadata query...Some rows in InfoFiles have NULL values thereby causing an exception to be raised. All InfoFiles.DB_Name are unique. * wqflask/base/data_set/dataset.py (DataSet.get_accession_id): Remove shortname/fullname check in query. Munyoki Kilyungi
2022-11-10Use the Maybe Monad when fetching the accession_id of a dataset...* wqflask/base/data_set/dataset.py: Import itertools, DictCursor, MonadicDict, Maybe, Nothing and query_sql. (DataSet.__init__): Initialize accession_id to Nothing. (DataSet.as_dict): Rename this to ... (Dataset.as_monadic_dict): ... this which returns a monadic dictionary. (DataSet.get_accession_id): Query for the accession_id and return it as a maybe monad. Munyoki Kilyungi
2022-11-08Remove string check for 'None' in HTML template...In Jinja, you can use dot notation to check for values. If a value does not exist, you get None by default. * wqflask/base/data_set/dataset.py (Dataset.get_accession_id): Remove returning a string version of None. * wqflask/wqflask/templates/correlation_page.html: Delete `!= 'None'`. Munyoki Kilyungi
2022-09-22Provide database cursor as argument for TheSpecies and Chromosomes...Provide the database cursor as an argument to the methods of the two classes: * wqflask.base.species.TheSpecies * wqflask.base.species.Chromosomes Also update dependent code to initialise and pass the cursor where these classes are used. Frederick Muriuki Muriithi
2022-09-20Decompose file into separate modules...To ease future refactors on the code, decompose the file into a module with multiple modules that can be refactored semi-independently. refactor-data_set_py-20220920Frederick Muriuki Muriithi