{{ define "main" }} {{ .Content }}

Data available from research groups in Sweden

The list below is curated manually and as such may not be exhaustive. If you would like to see your dataset here or correct information about your dataset, please get in touch with us. Projects sharing data where at least one author has an affiliation with a Swedish research institute are included. Only projects which openly share data or analysis code that has re-use potential are included.

Last updated: {{ substr $.Site.Data.publications.timestamp 0 10 }}

{{/* 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.publications.publications }} {{ $has_data := false }} {{ range .xrefs }} {{ if in $valid_db_list .db }} {{ $has_data = true}} {{ end }} {{ 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.Default.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 }}
Project Last updated Available data
{{ with .authors }} {{ if gt (len .) 5}} {{ range first 5 . }} {{ $family := (index . "family") }} {{ $initials := (index . "initials") }} {{ if not $initials }} {{ $initials = substr (index . "given") 0 1 }} {{ end }} {{ $family }} {{ $initials }}, {{ end }} {{ range last 1 . }} {{ $family := (index . "family") }} {{ $initials := (index . "initials") }} {{ if not $initials }} {{ $initials = substr (index . "given") 0 1 }} {{ end }} [...], {{ $family }} {{ $initials }} {{ end }} {{ else }} {{ $n := sub (len .) 1}} {{ range first $n . }} {{ $family := (index . "family") }} {{ $initials := (index . "initials") }} {{ if not $initials }} {{ $initials = substr (index . "given") 0 1 }} {{ end }} {{ $family }} {{ $initials }}, {{ end }} {{ range last 1 . }} {{ $family := (index . "family") }} {{ $initials := (index . "initials") }} {{ if not $initials }} {{ $initials = substr (index . "given") 0 1 }} {{ end }} {{ $family }} {{ $initials }} {{ end }} {{ end }} {{ end }}
{{ .journal.title }}{{ if .journal.volume }} {{ .journal.volume }}{{ end }}{{if .journal.issue}} ({{ .journal.issue }}){{ end }}{{ if .journal.pages }} {{ .journal.pages }}{{ end }}
{{ .doi }}
{{if .abstract }}
{{ .abstract }}
{{ end }}
{{ .published }} {{ with .xrefs }} {{ $total_dbs := 0 }} {{ range . }} {{ if in $valid_db_list .db}} {{ $total_dbs = add $total_dbs 1 }} {{ end }} {{ end }} {{ $as_list := false }} {{ if gt $total_dbs 1 }} {{ $as_list = true }} {{ end }} {{ if $as_list }}{{ end }} {{ end }}
{{ end }}