Skip to content
Snippets Groups Projects

Refseq no sys

Merged Remi PLANEL requested to merge refseq-no-sys into main
Files
12
@@ -13,6 +13,7 @@ export interface Props {
dataUrls?: string[]
dataUrl?: string
uniq?: boolean
format?: "pdb" | "cif"
}
const { mobile } = useDisplay()
@@ -52,7 +53,8 @@ const refinedDataUrls = computed(() => {
// const selectedPdb = ref(refinedDataUrls.value?.length > 0 ? refinedDataUrls.value[0] : null)
const props = withDefaults(defineProps<Props>(), {
height: 600,
uniq: false
uniq: false,
format: 'pdb'
})
const { width, height } = useDisplay()
@@ -158,10 +160,23 @@ const moleculeFormat: Ref<string> = ref("pdb")
<template>
<template v-if="uniq">
<v-row>
<v-btn size="x-small" variant="text" icon="md:visibility" @click="setSelectedPdbToFirst()"></v-btn>
<v-btn :disabled="!structureToDownload" size="x-small" variant="text" icon="md:download" class="ml-1"
:href="structureToDownload"></v-btn>
<v-row justify="space-between" dense no-gutters align="center">
<v-col>
<v-btn size="x-small" variant="text" icon="md:visibility" @click="setSelectedPdbToFirst()"></v-btn>
</v-col>
<v-col>
<v-menu>
<template v-slot:activator="{ props }">
<v-btn :disabled="refinedDataUrls?.length < 1" size="x-small" variant="text" icon="md:download"
class="ml-1" v-bind="props"></v-btn>
</template>
<v-list>
<v-list-item v-for="(item, index) in refinedDataUrls" :key="index" :value="index" :href="item">
<v-list-item-title>{{ item.split('.').slice(-1)[0] }}</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</v-col>
</v-row>
</template>
<v-row v-else>
@@ -195,7 +210,7 @@ const moleculeFormat: Ref<string> = ref("pdb")
sequence-panel="true" landscape="false" :custom-data-format="moleculeFormat"></pdbe-molstar>
</v-sheet>
</v-col>
<v-col :cols="mobile ? 12 : undefined">
<v-col v-if="moleculeFormat === 'cif'" :cols="mobile ? 12 : undefined">
<v-img :src="selectedPaePath"></v-img>
<!-- <PlotFigure v-if="sanitizedPaeData?.length > 0 && paeError === null" defer
Loading