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

- -
{%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%} + +{%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. +

+ + Genotype Encoding + + + + + + + + + + + {%for row in genocode%} + + + + + + {%else%} + + + + {%endfor%} + +
Allele TypeAllele SymbolAllele 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. +
+
+ +
+

Some Important Concepts to Consider/Remember

+ +

Possible references

+ +
+ +
+

+ There are a total of {{total_markers}} genotype markers for this species. +

+
+
+ {%if start_from > 0%} + + + Previous + + {%endif%} +
+
+ Displaying markers {{start_from+1}} to {{start_from + count}} of + {{total_markers}} +
+
+ {%if start_from + count < total_markers%} + + Next + + + {%endif%} +
+
+ + + + + + + + + + + + + {%for marker in markers%} + + + + + + + + + {%else%} + + + + {%endfor%} + +
#Marker NameChr + Location (Mb)SourceSource2
{{marker.sequence_number}}{{marker.Marker_Name}}{{marker.Chr}}{{marker.Mb}}{{marker.Source}}{{marker.Source2}}
+ + No markers to display! +
+
+{%endblock%} + +{%block sidebarcontents%} +{{display_population_card(species, population)}} +{%endblock%} -- cgit v1.2.3