Skip to content

Commit

Permalink
fix(survey): Partial searches for an accession to trigger surveillanc…
Browse files Browse the repository at this point in the history
…e genome warning.
  • Loading branch information
aaronmussig committed Oct 28, 2022
1 parent 9264f26 commit 9bafef3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/search/IsSurveillanceGenome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@

<v-divider></v-divider>
<v-card-text>
<p>You searched for the accession <b>{{ accession }}</b>, which is a known surveillance genome.</p>
<p>You searched for the accession <b>{{ surveyAccession }}</b>, which is a known surveillance genome.</p>

<p>The <a href="https://www.ncbi.nlm.nih.gov/pathogens/" target="_blank">NCBI Pathogen Detection Assembly</a>
(surveillance) genomes have been excluded from the GTDB as they include extremely large quantities of well
described taxa.</p>

<p class="mb-0">For more information, search the NCBI assembly database: NCBI - <a
:href="`https://www.ncbi.nlm.nih.gov/assembly/${accession}/`" target="_blank">{{ accession }}</a></p cla>
:href="`https://www.ncbi.nlm.nih.gov/assembly/${surveyAccession}/`" target="_blank">{{ surveyAccession }}</a></p cla>
</v-card-text>
</v-card>
</template>
Expand All @@ -46,7 +46,8 @@ export default Vue.extend({
loading: false,
lastAccession: '',
isSurveillance: false,
mdiAlertCircleSvg: mdiAlertCircle
mdiAlertCircleSvg: mdiAlertCircle,
surveyAccession: '',
}),
mounted() {
this.loadGenomeMetadata(this.accession);
Expand All @@ -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;
Expand Down

0 comments on commit 9bafef3

Please sign in to comment.