From c81fe6bdd2cab7cc2be0858bfd83fbc42de76473 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Mon, 5 Feb 2024 17:43:51 +0100 Subject: [PATCH] add Assembly --- components/content/RefseqDb.vue | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/components/content/RefseqDb.vue b/components/content/RefseqDb.vue index b5e33f87..230e0dce 100644 --- a/components/content/RefseqDb.vue +++ b/components/content/RefseqDb.vue @@ -109,16 +109,13 @@ const scaleTypes = ref<string[]>(['linear', 'sqrt', 'log', 'symlog']) const selectedTaxoRank = ref("Superkingdom"); const headers = ref([ - { title: "Assembly", key: "Assembly" }, - - { title: "Replicon", key: "replicon" }, { title: "System", key: "type", fixed: true }, + { title: "Assembly", key: "Assembly" }, { title: "Replicon", key: "replicon" }, - { title: "Subsystem", key: "subtype", @@ -581,7 +578,20 @@ async function downloadPng(component: ComponentPublicInstance | null, filename: item.type }} </v-chip> </template> + <template #[`item.Assembly`]="{ item }"> + <v-chip color="info" link size="small" + :href="`https://www.ncbi.nlm.nih.gov/datasets/genome/${item.Assembly}`" target="_blank"> {{ + item.Assembly }} + </v-chip> + </template> + <template #[`item.replicon`]="{ item }"> + <v-chip color="info" link size="small" + :href="`https://www.ncbi.nlm.nih.gov/nuccore/${item.replicon}`" target="_blank"> {{ + item.replicon }} + </v-chip> + </template> + <!-- --> <template #[`item.subtype`]="{ item }"> <v-chip color="info" link size="small" :to="`/defense-systems/${item.type.toLowerCase()}`" target="_blank"> {{ -- GitLab