Skip to content
Snippets Groups Projects
Commit f523a0b3 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

refined urls

parent 14abcd6d
No related branches found
No related tags found
1 merge request!222Refseq no sys
Pipeline #122287 waiting for manual action with stages
in 8 minutes and 46 seconds
...@@ -18,7 +18,6 @@ const itemValue = ref("id"); ...@@ -18,7 +18,6 @@ const itemValue = ref("id");
const dbName = ref("structure") const dbName = ref("structure")
onBeforeMount(async () => { onBeforeMount(async () => {
console.log("dans le mounted refseq")
const { data } = await useAsyncMeiliSearch({ const { data } = await useAsyncMeiliSearch({
index: toValue(dbName), query: "", params: { index: toValue(dbName), query: "", params: {
facets: ["*"], facets: ["*"],
...@@ -143,6 +142,8 @@ function pdbNameToCif(pdbPath: string) { ...@@ -143,6 +142,8 @@ function pdbNameToCif(pdbPath: string) {
return `${cifPath}.cif` return `${cifPath}.cif`
} }
const { refinedUrl: downloadAllPdbUrl } = useRefinedUrl("/df-all-pdb.tar.gz")
</script> </script>
<template> <template>
<ServerDbTable title="Predicted Structures" :sortBy="sortBy" :data-table-server-props="dataTableServerProps" <ServerDbTable title="Predicted Structures" :sortBy="sortBy" :data-table-server-props="dataTableServerProps"
...@@ -210,9 +211,24 @@ function pdbNameToCif(pdbPath: string) { ...@@ -210,9 +211,24 @@ function pdbNameToCif(pdbPath: string) {
<CollapsibleChips :items="namesToCollapsibleChips(item.system_genes, item.System_name_ok)"></CollapsibleChips> <CollapsibleChips :items="namesToCollapsibleChips(item.system_genes, item.System_name_ok)"></CollapsibleChips>
</template> </template>
<template #[`item.structure`]="{ item }"> <template #[`item.structure`]="{ item }">
<MolstarPdbePlugin v-if="item?.pdb && item.pdb !== 'na'" <v-list>
:data-urls="[`/${item.System_name_ok}/${pdbNameToCif(item.pdb)}`]" uniq> <v-list-item>
</MolstarPdbePlugin> <v-list-item-title>cif</v-list-item-title>
<MolstarPdbePlugin v-if="item?.pdb && item.pdb !== 'na'"
:data-urls="[`/${item.System_name_ok}/${pdbNameToCif(item.pdb)}`]" uniq>
</MolstarPdbePlugin>
</v-list-item>
<v-list-item>
<v-list-item-title>pdb</v-list-item-title>
<MolstarPdbePlugin v-if="item?.pdb && item.pdb !== 'na'"
:data-urls="[`/${item.System_name_ok}/${item.pdb}`]" uniq>
</MolstarPdbePlugin>
</v-list-item>
</v-list>
<!-- <v-icon v-else color="warning" icon="md:dangerous"></v-icon> --> <!-- <v-icon v-else color="warning" icon="md:dangerous"></v-icon> -->
...@@ -228,7 +244,7 @@ function pdbNameToCif(pdbPath: string) { ...@@ -228,7 +244,7 @@ function pdbNameToCif(pdbPath: string) {
all</v-btn> all</v-btn>
</template> </template>
<v-list> <v-list>
<v-list-item value="pdb" href="/df-all-pdb.tar.gz"> <v-list-item value="pdb" :href="downloadAllPdbUrl">
<v-list-item-title>all pdbs</v-list-item-title> <v-list-item-title>all pdbs</v-list-item-title>
</v-list-item> </v-list-item>
<v-list-item value="pdb"> <v-list-item value="pdb">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment