aboutsummaryrefslogtreecommitdiff
path: root/uploader/expression_data
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-08-29 15:21:27 -0500
committerFrederick Muriuki Muriithi2024-08-30 15:06:24 -0500
commite49b4367f1dab1c3acb3cd5d71ba09359c5ab4ee (patch)
tree63035669dd9a82bccee60b572a565d028cf3ef38 /uploader/expression_data
parentf95037b93329d5a4953b81ba1b58e4028a6274e8 (diff)
downloadgn-uploader-e49b4367f1dab1c3acb3cd5d71ba09359c5ab4ee.tar.gz
Initialise package for dealing with Species.
Diffstat (limited to 'uploader/expression_data')
-rw-r--r--uploader/expression_data/index.py2
-rw-r--r--uploader/expression_data/rqtl2.py1
-rw-r--r--uploader/expression_data/samples.py1
3 files changed, 3 insertions, 1 deletions
diff --git a/uploader/expression_data/index.py b/uploader/expression_data/index.py
index 799989e..db23136 100644
--- a/uploader/expression_data/index.py
+++ b/uploader/expression_data/index.py
@@ -14,7 +14,7 @@ from flask import (
render_template,
current_app as app)
-from uploader.db import species
+from uploader.species.models import all_species as species
from uploader.authorisation import require_login
from uploader.db_utils import with_db_connection
diff --git a/uploader/expression_data/rqtl2.py b/uploader/expression_data/rqtl2.py
index 48df66c..975fc1f 100644
--- a/uploader/expression_data/rqtl2.py
+++ b/uploader/expression_data/rqtl2.py
@@ -41,6 +41,7 @@ from uploader.db import (
save_population,
populations_by_species,
population_by_species_and_id,)
+from uploader.species.models import species_by_id
from uploader.db.datasets import (
geno_dataset_by_id,
geno_datasets_by_species_and_population,
diff --git a/uploader/expression_data/samples.py b/uploader/expression_data/samples.py
index 95b9b73..0715d14 100644
--- a/uploader/expression_data/samples.py
+++ b/uploader/expression_data/samples.py
@@ -34,6 +34,7 @@ from uploader.db import (
population_by_id,
populations_by_species,
species as fetch_species)
+from uploader.species.models import species_by_id, all_species as fetch_species
samples = Blueprint("samples", __name__)