From bfb581115cb5306cf2b95bb940d22b4c1dfca7d3 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 10 Sep 2026 14:13:26 -0500 Subject: PoC: UI for genotype records. Implement a proof-of-concept (PoC) UI for genotype records. --- uploader/templates/genotypes/base.html | 7 +- uploader/templates/genotypes/index.html | 129 ++++++++++++ uploader/templates/genotypes/list-genotypes.html | 227 --------------------- .../genotypes/macro-display-dataset-card.html | 24 +++ 4 files changed, 159 insertions(+), 228 deletions(-) create mode 100644 uploader/templates/genotypes/index.html delete mode 100644 uploader/templates/genotypes/list-genotypes.html create mode 100644 uploader/templates/genotypes/macro-display-dataset-card.html (limited to 'uploader/templates') diff --git a/uploader/templates/genotypes/base.html b/uploader/templates/genotypes/base.html index 8d1b951..c2abc63 100644 --- a/uploader/templates/genotypes/base.html +++ b/uploader/templates/genotypes/base.html @@ -1,10 +1,11 @@ {%extends "populations/base.html"%} {%from "populations/macro-display-population-card.html" import display_sui_population_card%} +{%from "genotypes/macro-display-dataset-card.html" import display_dataset_card%} {%block breadcrumbs%} {{super()}}
| # | +Index | +Locus | +Chr | +cM | +Mb | + {%for sample in samples%} +{{sample}} | + {%endfor%} +
|---|---|---|---|---|---|---|
| + + | +{{record.index}} | +{{record.Name}} | +{{record.Chr}} | +{{record.cM}} | +{{record.Mb}} | + {%for sample in samples%} +{{record.data[sample]}} | + {%endfor%} +
| + There are no records + | +||||||
The numerical values in the table above are mapped from the following allele symbols:
+ +| Allele Type | +Allele Symbol | +Mapped To | +
|---|---|---|
| + {{row.AlleleType}} | +{{row.AlleleSymbol}} | +{{row.DatabaseValue if row.DatabaseValue is not none}} | +
| + There is no genotype encoding defined for this data. + | +||
We need to create a dataset to hold the genotype information for this + species/population, before we can proceed to upload the genotype data.
+Please click the button below to create the dataset.
+ + +- The genotype encoding used for the "{{population.FullName}}" population from - the "{{species.FullName}}" species is as shown in the table below. -
-| Allele Type | -Allele Symbol | -Allele Value | -||||
|---|---|---|---|---|---|---|
| {{row.AlleleType}} | -{{row.AlleleSymbol}} | -{{row.DatabaseValue if row.DatabaseValue is not none else "NULL"}} | -||||
| - - There is no explicit genotype encoding defined for this population. - | -||||||
| Name | -Full Name | -
|---|---|
| {{dataset.Name}} | -- {{dataset.FullName}} | -
- To see more information regarding this dataset (e.g. which markers have - sample allele data, the allele data itself, etc) click on the "Full Name" - link above.
-- The table below lists all of the markers that exist for species - {{species.SpeciesName}} ({{species.FullName}}), regardless of whether - (or not) we have corresponding sample allele data for a particular marker. -
-| # | -Index | -Marker Name | -Chr | -- Location (Mb) | -Source | -Source2 | -
|---|---|---|---|---|---|---|
| - | - | - | - | - | - | - |
- Your genotype data will need to be under a dataset. Unfortunately there is - currently no dataset defined for this population. -
- -- - Click the button below to define the genotype dataset for this population. -
- -- - NOTE: Currently the GN2 (and related) system(s) expect a - single genotype dataset per population. If there is more than one, the - system apparently fails in unpredictable ways. -
-| Name | +{{dataset.Name}} | +
|---|---|
| Full Name | +{{dataset.FullName}} | +
| Short Name | +{{dataset.ShortName}} | +