From 17defa03f395aa9895b524ef3125e138b3987507 Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Tue, 17 Sep 2024 16:57:39 -0500
Subject: Display some genotype information.
---
uploader/templates/genotypes/index.html | 8 --
uploader/templates/genotypes/list-genotypes.html | 142 +++++++++++++++++++++++
2 files changed, 142 insertions(+), 8 deletions(-)
create mode 100644 uploader/templates/genotypes/list-genotypes.html
(limited to 'uploader/templates')
diff --git a/uploader/templates/genotypes/index.html b/uploader/templates/genotypes/index.html
index 9ffea73..e749f5a 100644
--- a/uploader/templates/genotypes/index.html
+++ b/uploader/templates/genotypes/index.html
@@ -25,12 +25,4 @@
{{select_species_form(url_for("species.populations.genotypes.index"),
species)}}
-
-
-
Some Important Concepts to Consider/Remember
-
- - Reference vs. Non-reference alleles
- - In GenoCode table, items are ordered by InbredSet
-
-
{%endblock%}
diff --git a/uploader/templates/genotypes/list-genotypes.html b/uploader/templates/genotypes/list-genotypes.html
new file mode 100644
index 0000000..9b27540
--- /dev/null
+++ b/uploader/templates/genotypes/list-genotypes.html
@@ -0,0 +1,142 @@
+{%extends "genotypes/base.html"%}
+{%from "flash_messages.html" import flash_all_messages%}
+{%from "populations/macro-display-population-card.html" import display_population_card%}
+
+{%block title%}Genotypes{%endblock%}
+
+{%block pagetitle%}Genotypes{%endblock%}
+
+{%block lvl4_breadcrumbs%}
+
+ List genotypes
+
+{%endblock%}
+
+{%block contents%}
+{{flash_all_messages()}}
+
+
+
+ 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 |
+
+
+
+
+ {%for row in genocode%}
+
+ {{row.AlleleType}} |
+ {{row.AlleleSymbol}} |
+ {{row.DatabaseValue if row.DatabaseValue is not none else "NULL"}} |
+
+ {%else%}
+
+
+
+ There is no explicit genotype encoding defined for this population.
+ |
+
+ {%endfor%}
+
+
+
+
+
+
Some Important Concepts to Consider/Remember
+
+ - Reference vs. Non-reference alleles
+ - In GenoCode table, items are ordered by InbredSet
+
+
Possible references
+
+ - https://mr-dictionary.mrcieu.ac.uk/term/genotype/
+
+
+
+
+
+ There are a total of {{total_markers}} genotype markers for this species.
+
+
+
+
+ Displaying markers {{start_from+1}} to {{start_from + count}} of
+ {{total_markers}}
+
+
+ {%if start_from + count < total_markers%}
+
+ Next
+
+
+ {%endif%}
+
+
+
+
+
+ # |
+ Marker Name |
+ Chr |
+
+ Location (Mb) |
+ Source |
+ Source2 |
+
+
+
+ {%for marker in markers%}
+
+ {{marker.sequence_number}} |
+ {{marker.Marker_Name}} |
+ {{marker.Chr}} |
+ {{marker.Mb}} |
+ {{marker.Source}} |
+ {{marker.Source2}} |
+
+ {%else%}
+
+
+
+ No markers to display!
+ |
+
+ {%endfor%}
+
+
+
+{%endblock%}
+
+{%block sidebarcontents%}
+{{display_population_card(species, population)}}
+{%endblock%}
--
cgit v1.2.3