From e49b4367f1dab1c3acb3cd5d71ba09359c5ab4ee Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 29 Aug 2024 15:21:27 -0500 Subject: Initialise package for dealing with Species. --- uploader/expression_data/index.py | 2 +- uploader/expression_data/rqtl2.py | 1 + uploader/expression_data/samples.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'uploader/expression_data') 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__) -- cgit v1.2.3