diff options
author | Alexander Kabui | 2021-07-12 12:27:45 +0300 |
---|---|---|
committer | Alexander Kabui | 2021-07-12 12:27:45 +0300 |
commit | 8b565a25b643e7ad653cb2c17d6456d073245dc5 (patch) | |
tree | 961cf33072c6089583f87d39539c53e0d5dd986a /wqflask/base/data_set.py | |
parent | 3a9ef933faec1f14560b1f6ced9fcd4413089770 (diff) | |
parent | 344d6a86d2e468249ec7b583e8c0751f99cd6a5b (diff) | |
download | genenetwork2-8b565a25b643e7ad653cb2c17d6456d073245dc5.tar.gz |
fix merge conflict
Diffstat (limited to 'wqflask/base/data_set.py')
-rw-r--r-- | wqflask/base/data_set.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index 6dc44829..4cb82665 100644 --- a/wqflask/base/data_set.py +++ b/wqflask/base/data_set.py @@ -557,6 +557,7 @@ class DataSet: self.fullname = None self.type = None self.data_scale = None # ZS: For example log2 + self.accession_id = None self.setup() @@ -573,6 +574,17 @@ class DataSet: self.group.get_samplelist() self.species = species.TheSpecies(self) + def as_dict(self): + return { + 'name': self.name, + 'shortname': self.shortname, + 'fullname': self.fullname, + 'type': self.type, + 'data_scale': self.data_scale, + 'group': self.group.name, + 'accession_id': self.accession_id + } + def get_accession_id(self): if self.type == "Publish": results = g.db.execute("""select InfoFiles.GN_AccesionId from InfoFiles, PublishFreeze, InbredSet where |