{{ define "main" }} {{ .Content }} {{/* Get all entries with available data into an array */}} {{ $all_entries := slice }} {{ $valid_db_list := slice "URL" "NA" "N/A" "GENBANK" "PDB" "BioProject" "GEO" "ISRCTN" "Dryad" "PubChem-Substance" "RefSeq" "dbGaP"}} {{ range $index, $entry := $.Site.Data.assembled.publications }} {{ $has_data := false }} {{ range .xrefs }} {{ $has_data = true}} {{ end }} {{ if $has_data }} {{ $all_entries = $all_entries | append $entry }} {{ end }} {{ end }} {{/* Count how many entries we have for each data type */}} {{ $all_data_types := slice "Category: Biochemistry" "Category: Drug Discovery" "Category: Genomics & transcriptomics" "Category: Health" "Category: Imaging" "Category: Other" "Category: Proteins" "Category: Public Health" "Category: Serology"}} {{ $num_entries_per_data_type := dict }} {{ range $all_data_types }} {{ $current_type := . }} {{ $num_entries := 0 }} {{ range $all_entries }} {{ range $key, $content := .labels }} {{ if eq $key $current_type}} {{ $num_entries = add $num_entries 1}} {{ end }} {{ end }} {{ end }} {{ $data_type_num_entries := dict $current_type $num_entries }} {{ $num_entries_per_data_type = merge $num_entries_per_data_type $data_type_num_entries }} {{ end }} {{/* The following bit ensures that it is not necessary to copy the datatypes_to_display list in the Swedish version of the page */}} {{ $datatypes_to_display := slice }} {{ $path := strings.TrimPrefix "/sv" (strings.TrimRight "/" (string .Page.RelPermalink)) }} {{ with .Sites.First.GetPage $path }} {{ $datatypes_to_display = .Params.datatypes_to_display }} {{ end }} {{/* Select which entries from the database to display on this page */}} {{ $current_page := .Title }} {{ $entries_to_display := slice }} {{ range $all_entries }} {{ $correct_type := false }} {{ range $key, $content := .labels }} {{ if in $datatypes_to_display $key}} {{ $correct_type = true}} {{ end }} {{ end }} {{ if and (ne $current_page "All data types") (ne $current_page "Alla datatyper") }} {{ if $correct_type }} {{ $entries_to_display = $entries_to_display | append . }} {{ end }} {{ else }} {{ $entries_to_display = $all_entries }} {{ end }} {{ end }}
 
 
 
{{ range $index, $entry := $entries_to_display }} {{ end }}
Accesion Collection date Center name Host Taxonomy Coverage (%)
{{ .published }}
{{.host}}
{{.taxonomy}}
{{.coverage}}
{{ end }}