<feed xmlns='http://www.w3.org/2005/Atom'>
<title>genenetwork2/wqflask/base/data_set, branch lmdb-code/refactoring</title>
<subtitle>GeneNetwork (2nd generation)
</subtitle>
<id>http://git.genenetwork.org/genenetwork2/atom?h=lmdb-code%2Frefactoring</id>
<link rel='self' href='http://git.genenetwork.org/genenetwork2/atom?h=lmdb-code%2Frefactoring'/>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/'/>
<updated>2023-03-17T16:25:51+00:00</updated>
<entry>
<title>Fix correlation bug caused by a NULL UPDATE_TIME in the DB</title>
<updated>2023-03-17T16:25:51+00:00</updated>
<author>
<name>zsloan</name>
</author>
<published>2023-03-17T16:25:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=b414da7ff3c84564931388e81c729f0dfd06d0c3'/>
<id>urn:sha1:b414da7ff3c84564931388e81c729f0dfd06d0c3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix Exception that's raised when query_sql returns None</title>
<updated>2022-12-01T21:11:13+00:00</updated>
<author>
<name>Munyoki Kilyungi</name>
</author>
<published>2022-12-01T16:34:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=fb0fffb7a3470c648cef8effeb1792e6ac3c7504'/>
<id>urn:sha1:fb0fffb7a3470c648cef8effeb1792e6ac3c7504</id>
<content type='text'>
* wqflask/base/data_set/dataset.py:  Delete itertools, DictCursor.
(DataSet.get_accession_id): Handle a case where query_sql returns a
None value.
</content>
</entry>
<entry>
<title>Remove check for shortnames/fullnames in probeset metadata query</title>
<updated>2022-11-30T13:45:25+00:00</updated>
<author>
<name>Munyoki Kilyungi</name>
</author>
<published>2022-11-30T13:34:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=9c5b1f48914da17c08fc95da858e3d06e41721bb'/>
<id>urn:sha1:9c5b1f48914da17c08fc95da858e3d06e41721bb</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Use the Maybe Monad when fetching the accession_id of a dataset</title>
<updated>2022-11-10T06:00:04+00:00</updated>
<author>
<name>Munyoki Kilyungi</name>
</author>
<published>2022-10-09T11:04:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=30c31955df6a9d20c28e0dcd9f99f06cbfd51a77'/>
<id>urn:sha1:30c31955df6a9d20c28e0dcd9f99f06cbfd51a77</id>
<content type='text'>
* 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.
</content>
</entry>
<entry>
<title>Remove string check for 'None' in HTML template</title>
<updated>2022-11-08T08:22:05+00:00</updated>
<author>
<name>Munyoki Kilyungi</name>
</author>
<published>2022-10-09T16:38:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=d09a9485aebe0fa40c9fed2064a975a7cdd06e87'/>
<id>urn:sha1:d09a9485aebe0fa40c9fed2064a975a7cdd06e87</id>
<content type='text'>
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'`.
</content>
</entry>
<entry>
<title>Fix bug when initializing Temp DatasetGroups</title>
<updated>2022-10-17T18:35:50+00:00</updated>
<author>
<name>zsloan</name>
</author>
<published>2022-10-17T18:35:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=619548466f49c985ad77183e3722a3c47ab85425'/>
<id>urn:sha1:619548466f49c985ad77183e3722a3c47ab85425</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Provide database cursor as argument for TheSpecies and Chromosomes</title>
<updated>2022-09-22T03:33:47+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2022-09-22T03:33:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=30f305c1b87b4b6c4f308b15d5ae9248dc367e14'/>
<id>urn:sha1:30f305c1b87b4b6c4f308b15d5ae9248dc367e14</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Added Markers/HumanMarkers import to datasetgroup.py and removed it from</title>
<updated>2022-09-21T18:43:33+00:00</updated>
<author>
<name>zsloan</name>
</author>
<published>2022-09-21T18:42:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=1292d94abbf2e10698344dd98b7d887ea6bc5221'/>
<id>urn:sha1:1292d94abbf2e10698344dd98b7d887ea6bc5221</id>
<content type='text'>
__init__.py

Previously it threw an error when it tried to use Markers/HumanMarkers
in datasetgroup.py; since Markers/HumanMarkers doesn't seem to be used
anywhere else, I think it's okay for the import to only be in
datasetgroup.py
</content>
</entry>
<entry>
<title>Refactor: pass redis and db connections as argument</title>
<updated>2022-09-21T09:37:36+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2022-09-21T09:33:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=8a51d58ed66593a420740b347ef841454e254237'/>
<id>urn:sha1:8a51d58ed66593a420740b347ef841454e254237</id>
<content type='text'>
Pass the redis and database connection/cursors as arguments to the
class methods, and do not retain a copy of the connections/cursors.

This allows us to do the connection management in the context
managers elsewhere - ideally, at the top-level. For now the context
manager is within the `create_dataset` function, but this should be
moved out to a higher level once the lower levels are verified to be
working as expected.
</content>
</entry>
<entry>
<title>Remove global `Dataset_Getter` variable</title>
<updated>2022-09-20T19:56:55+00:00</updated>
<author>
<name>Frederick Muriuki Muriithi</name>
</author>
<published>2022-09-20T19:56:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.genenetwork.org/genenetwork2/commit/?id=d0b01d0be72ff541e72373cd085a58c3af2b4fed'/>
<id>urn:sha1:d0b01d0be72ff541e72373cd085a58c3af2b4fed</id>
<content type='text'>
Since the `__post_init__` method in the 'DatasetType' class checks
whether data is in redis before hitting the database, it does not
matter whether there is a global object of the type, as long as we
make sure to call the object correctly.

This commit makes that happen.
</content>
</entry>
</feed>
