Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
758cb1b0
Commit
758cb1b0
authored
11 months ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
look at the exangeables as well
parent
4ba78d05
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#129367
failed
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/content/SystemOperonStructure.vue
+6
-1
6 additions, 1 deletion
components/content/SystemOperonStructure.vue
types/structure.ts
+2
-0
2 additions, 0 deletions
types/structure.ts
with
8 additions
and
1 deletion
components/content/SystemOperonStructure.vue
+
6
−
1
View file @
758cb1b0
...
@@ -48,10 +48,15 @@ const sanitizedHits = computed<StructureOperonGeneWithImg[]>(() => {
...
@@ -48,10 +48,15 @@ const sanitizedHits = computed<StructureOperonGeneWithImg[]>(() => {
// get structure information for this prot
// get structure information for this prot
const
monomerStructuresVal
=
toValue
(
monomerStructures
)
const
monomerStructuresVal
=
toValue
(
monomerStructures
)
const
sanitizedGene
=
hit
.
gene
.
split
(
"
__
"
)[
1
]
const
sanitizedGene
=
hit
.
gene
.
split
(
"
__
"
)[
1
]
const
sanitizedExangeableGenes
=
hit
.
exchangeables
.
map
(
g
=>
g
.
split
(
"
__
"
)[
1
])
const
genesAndSynonymous
=
new
Set
([
sanitizedGene
,
...
sanitizedExangeableGenes
])
if
(
monomerStructuresVal
)
{
if
(
monomerStructuresVal
)
{
const
struct
=
monomerStructuresVal
.
find
((
struct
)
=>
{
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
rawImgUrl
=
joinURL
(
`/
${
system
.
toLowerCase
()}
`
,
struct
?.
structImg
??
''
)
const
rawStructUrl
=
joinURL
(
`/
${
system
.
toLowerCase
()}
`
,
struct
?.
structPath
??
''
)
const
rawStructUrl
=
joinURL
(
`/
${
system
.
toLowerCase
()}
`
,
struct
?.
structPath
??
''
)
const
{
refinedUrl
:
structImgHref
}
=
useRefinedUrl
(
rawImgUrl
)
const
{
refinedUrl
:
structImgHref
}
=
useRefinedUrl
(
rawImgUrl
)
...
...
This diff is collapsed.
Click to expand it.
types/structure.ts
+
2
−
0
View file @
758cb1b0
...
@@ -4,6 +4,8 @@ export interface StructureOperonGene {
...
@@ -4,6 +4,8 @@ export interface StructureOperonGene {
subsystem
:
string
subsystem
:
string
version
:
string
version
:
string
system
:
string
system
:
string
exchangeables
:
string
[]
}
}
export
interface
StructureOperonGeneWithImg
extends
StructureOperonGene
{
export
interface
StructureOperonGeneWithImg
extends
StructureOperonGene
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment