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

Merge branch 'operon-struct-type' into operon-struct-type-article-update

parents bb59d79e 1d8d2ebc
No related branches found
No related tags found
No related merge requests found
Pipeline #129148 failed with stages
in 12 minutes and 6 seconds
......@@ -64,6 +64,19 @@ const computedGenes = computed(() => {
}
else { return [] }
})
const structureVersion = computed(() => {
const genesVal = toValue(computedGenes)
if (genesVal?.length > 0) {
return genesVal[0].version
}
else {
return undefined
}
})
watch(computedGenes, () => {
const genes = toValue(computedGenes)
const domain = genes?.map(d => { return d.gene })
......@@ -198,6 +211,7 @@ function drawGene({ width, height }) {
<template>
<div ref="gbContainer">
<v-card flat color="transparent">
<v-card-subtitle>model version : {{ structureVersion }}</v-card-subtitle>
<!-- <v-img :href=""></v-img> -->
<svg ref="svgRef" :width="computedContainerWidth" :height="plotHeight">
<g class="x-axis" />
......
......@@ -110,7 +110,7 @@ async function fetchStructures() {
<template>
<v-card flat>
<template v-for="[subsystem, structures] in perSubsystemStructures" :key="subsystem[0]">
<ProseH3>{{ computedSystem }} - {{ subsystem }}</ProseH3>
<ProseH3>{{ subsystem }}</ProseH3>
<v-row align="end">
<v-col cols="6" class="ml-0 ">
<SystemOperonStructure :system="computedSystem" :subsystem="subsystem" :structures="structures" />
......
......@@ -2,6 +2,7 @@ export interface StructureOperonGene {
gene: string
id: number
subsystem: string
version: string
system: string
}
......
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