diff options
author | Frederick Muriuki Muriithi | 2024-04-12 09:13:20 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-04-12 09:16:13 +0300 |
commit | 09b4b70aae5e65516c766882118a897c75a44974 (patch) | |
tree | 82f195fbf101bdec1fef88f4571f369e09a520d5 /qc_app/upload | |
parent | 27a39c8465a49db5e65f83c36e531ea1f7769682 (diff) | |
download | gn-uploader-09b4b70aae5e65516c766882118a897c75a44974.tar.gz |
Provide tissue-id details to probeset dataset templates
Diffstat (limited to 'qc_app/upload')
-rw-r--r-- | qc_app/upload/rqtl2.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/qc_app/upload/rqtl2.py b/qc_app/upload/rqtl2.py index 66c95b9..bf392a9 100644 --- a/qc_app/upload/rqtl2.py +++ b/qc_app/upload/rqtl2.py @@ -870,6 +870,19 @@ def select_dataset_info(species_id: int, population_id: int): platforms=platforms_by_species(conn, species_id), tissues=all_tissues(conn)) + tissue = tissue_by_id(conn, form.get("tissueid", "").strip()) + if "pheno" in cdata and not bool(tissue): + return render_template( + "rqtl2/select-tissue.html", + species=species, + population=population, + rqtl2_bundle_file=thefile.name, + geno_dataset=geno_dataset, + studies=probeset_studies_by_species_and_population( + conn, species_id, population_id), + platforms=platforms_by_species(conn, species_id), + tissues=all_tissues(conn)) + return render_template( "rqtl2/select-probeset-study-id.html", species=species, @@ -891,6 +904,7 @@ def select_dataset_info(species_id: int, population_id: int): rqtl2_bundle_file=thefile.name, geno_dataset=geno_dataset, probe_study=probeset_study, + tissue=tissue, datasets=probeset_datasets_by_study( conn, int(form["probe-study-id"])), avgmethods=averaging_methods(conn)) |