From 9bafef3332f1b7fa102954f7be57e386c6124235 Mon Sep 17 00:00:00 2001 From: Aaron Mussig Date: Fri, 28 Oct 2022 14:52:43 +1000 Subject: [PATCH] fix(survey): Partial searches for an accession to trigger surveillance genome warning. --- components/search/IsSurveillanceGenome.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/components/search/IsSurveillanceGenome.vue b/components/search/IsSurveillanceGenome.vue index f9cc5a5..6ece66f 100644 --- a/components/search/IsSurveillanceGenome.vue +++ b/components/search/IsSurveillanceGenome.vue @@ -14,14 +14,14 @@ -

You searched for the accession {{ accession }}, which is a known surveillance genome.

+

You searched for the accession {{ surveyAccession }}, which is a known surveillance genome.

The NCBI Pathogen Detection Assembly (surveillance) genomes have been excluded from the GTDB as they include extremely large quantities of well described taxa.

For more information, search the NCBI assembly database: NCBI - {{ accession }}

+ :href="`https://www.ncbi.nlm.nih.gov/assembly/${surveyAccession}/`" target="_blank">{{ surveyAccession }}

@@ -46,7 +46,8 @@ export default Vue.extend({ loading: false, lastAccession: '', isSurveillance: false, - mdiAlertCircleSvg: mdiAlertCircle + mdiAlertCircleSvg: mdiAlertCircle, + surveyAccession: '', }), mounted() { this.loadGenomeMetadata(this.accession); @@ -58,6 +59,7 @@ export default Vue.extend({ this.loading = true; this.$api.genome.getMetadata(accession).then(response => { this.isSurveillance = response.data.isNcbiSurveillance; + this.surveyAccession = response.data.accession; }) .finally(() => { this.loading = false;