diff options
author | zsloan | 2020-09-30 13:32:54 -0500 |
---|---|---|
committer | zsloan | 2020-09-30 13:32:54 -0500 |
commit | 4bd5534658fe7ed2a9ffd50c137be81d7a7b190b (patch) | |
tree | 9fb537ff236fd0ccdd11a1bd5f931a67e815e952 | |
parent | d34258bed3ef13350499414100401df3bf08a105 (diff) | |
download | genenetwork2-4bd5534658fe7ed2a9ffd50c137be81d7a7b190b.tar.gz |
Removed unused code from TempDataSet class
* wqflask/base/data_set.py - TempDataSet class contained some code
referring to the SQL DB, but temp traits aren't stored in the SQL DB anymore
-rw-r--r-- | wqflask/base/data_set.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index afffe780..e0ef559c 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -1173,40 +1173,6 @@ class TempDataSet(DataSet): self.fullname = 'Temporary Storage' self.shortname = 'Temp' - @staticmethod - def handle_pca(desc): - if 'PCA' in desc: - # Todo: Modernize below lines - desc = desc[desc.rindex(':')+1:].strip() - else: - desc = desc[:desc.index('entered')].strip() - return desc - - def get_desc(self): - query = 'SELECT description FROM Temp WHERE Name=%s' % self.name - logger.sql(query) - g.db.execute(query) - desc = g.db.fetchone()[0] - desc = self.handle_pca(desc) - return desc - - def retrieve_sample_data(self, trait): - query = """ - SELECT - Strain.Name, TempData.value, TempData.SE, TempData.NStrain, TempData.Id - FROM - TempData, Temp, Strain - WHERE - TempData.StrainId = Strain.Id AND - TempData.Id = Temp.DataId AND - Temp.name = '%s' - Order BY - Strain.Name - """ % escape(trait.name) - - logger.sql(query) - results = g.db.execute(query).fetchall() - def geno_mrna_confidentiality(ob): dataset_table = ob.type + "Freeze" |