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

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

parents e03b7fcb 758cb1b0
No related branches found
No related tags found
No related merge requests found
Pipeline #129368 waiting for manual action with stages
in 7 minutes and 48 seconds
......@@ -48,10 +48,15 @@ const sanitizedHits = computed<StructureOperonGeneWithImg[]>(() => {
// get structure information for this prot
const monomerStructuresVal = toValue(monomerStructures)
const sanitizedGene = hit.gene.split("__")[1]
const sanitizedExangeableGenes = hit.exchangeables.map(g => g.split("__")[1])
const genesAndSynonymous = new Set([sanitizedGene, ...sanitizedExangeableGenes])
if (monomerStructuresVal) {
const struct = monomerStructuresVal.find((struct) => {
return struct.proteins_in_the_prediction[0] === sanitizedGene
return genesAndSynonymous.has(struct.proteins_in_the_prediction[0])
})
if (struct === undefined) {
console.log(hit)
}
const rawImgUrl = joinURL(`/${system.toLowerCase()}`, struct?.structImg ?? '')
const rawStructUrl = joinURL(`/${system.toLowerCase()}`, struct?.structPath ?? '')
const { refinedUrl: structImgHref } = useRefinedUrl(rawImgUrl)
......
......@@ -4,6 +4,8 @@ export interface StructureOperonGene {
subsystem: string
version: string
system: string
exchangeables: string[]
}
export interface StructureOperonGeneWithImg extends StructureOperonGene {
......
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