aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/__init__.py
diff options
context:
space:
mode:
authorBonfaceKilz2021-07-09 16:50:28 +0300
committerBonfaceKilz2021-07-10 09:09:00 +0300
commitd5c0cdec01ce1888946d09c0df72ea42ad2d2c17 (patch)
tree57c0b82e817edf6ccdd6ba65b3e55201186b7849 /gn3/db/__init__.py
parentd6715cff2e5a1771b22bb2ce7680347cad501841 (diff)
downloadgenenetwork3-d5c0cdec01ce1888946d09c0df72ea42ad2d2c17.tar.gz
db: phenotypes: Add Probeset data structures
* gn3/db/phenotypes.py (Probeset): New dataclass. (probeset_mapping): New dict. * gn3/db/__init__.py: Add probeset_mapping and Probeset.
Diffstat (limited to 'gn3/db/__init__.py')
-rw-r--r--gn3/db/__init__.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/gn3/db/__init__.py b/gn3/db/__init__.py
index 34a0236..9b1b36a 100644
--- a/gn3/db/__init__.py
+++ b/gn3/db/__init__.py
@@ -6,27 +6,32 @@ from typing_extensions import Protocol
from gn3.db.metadata_audit import MetadataAudit
from gn3.db.phenotypes import Phenotype
-from gn3.db.phenotypes import PublishXRef
+from gn3.db.phenotypes import Probeset
from gn3.db.phenotypes import Publication
+from gn3.db.phenotypes import PublishXRef
+
from gn3.db.metadata_audit import metadata_audit_mapping
from gn3.db.phenotypes import phenotype_mapping
+from gn3.db.phenotypes import probeset_mapping
from gn3.db.phenotypes import publication_mapping
from gn3.db.phenotypes import publish_x_ref_mapping
TABLEMAP = {
- "metadata_audit": metadata_audit_mapping,
"Phenotype": phenotype_mapping,
- "PublishXRef": publish_x_ref_mapping,
+ "ProbeSet": probeset_mapping,
"Publication": publication_mapping,
+ "PublishXRef": publish_x_ref_mapping,
+ "metadata_audit": metadata_audit_mapping,
}
DATACLASSMAP = {
- "metadata_audit": MetadataAudit,
"Phenotype": Phenotype,
- "PublishXRef": PublishXRef,
+ "ProbeSet": Probeset,
"Publication": Publication,
+ "PublishXRef": PublishXRef,
+ "metadata_audit": MetadataAudit,
}