Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Cosy-Bio
Drugst.One
plugin
Commits
9c05a9f7
Commit
9c05a9f7
authored
2 years ago
by
AndiMajore
Browse files
Options
Downloads
Patches
Plain Diff
added new datasets to config
parent
eb0ae9a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/config.ts
+14
-7
14 additions, 7 deletions
src/app/config.ts
src/index.html
+1
-1
1 addition, 1 deletion
src/index.html
with
15 additions
and
8 deletions
src/app/config.ts
+
14
−
7
View file @
9c05a9f7
...
...
@@ -24,8 +24,11 @@ export interface EdgeGroup {
}
export
type
Identifier
=
'
symbol
'
|
'
uniprot
'
|
'
ensg
'
;
export
type
InteractionDrugProteinDB
=
'
DrugBank
'
|
'
Chembl
'
|
'
DGIdb
'
;
export
type
InteractionProteinProteinDB
=
'
STRING
'
|
'
BioGRID
'
|
'
APID
'
;
export
type
InteractionDrugProteinDB
=
'
DrugBank
'
|
'
Chembl
'
|
'
DGIdb
'
|
'
NeDRex
'
;
export
type
InteractionProteinProteinDB
=
'
STRING
'
|
'
BioGRID
'
|
'
APID
'
|
'
NeDRex
'
;
export
type
IndicationDrugDisorderDB
=
'
DrugBank
'
|
'
NeDRex
'
;
export
type
AssociatedProteinDisorderDB
=
'
NeDRex
'
|
'
DisGeNET
'
;
// TODO: should this be external or integrated in the backend?
export
type
InteractionDatabase
=
'
omnipath
'
;
...
...
@@ -35,8 +38,8 @@ export interface IConfig {
legendUrl
:
string
;
legendClass
:
string
;
legendPos
:
'
left
'
|
'
right
'
;
taskTargetName
:
string
,
taskDrugName
:
string
,
taskTargetName
:
string
;
taskDrugName
:
string
;
showSidebar
:
false
|
'
left
'
|
'
right
'
;
showOverview
:
boolean
;
showQuery
:
boolean
;
...
...
@@ -65,6 +68,8 @@ export interface IConfig {
edgeGroups
:
{
[
key
:
string
]:
EdgeGroup
};
interactionDrugProtein
:
InteractionDrugProteinDB
;
interactionProteinProtein
:
InteractionProteinProteinDB
;
indicationDrugDisorder
:
IndicationDrugDisorderDB
;
associatedProteinDisorder
:
AssociatedProteinDisorderDB
;
autofillEdges
:
boolean
;
interactions
?:
InteractionDatabase
;
physicsOn
?:
boolean
;
...
...
@@ -108,8 +113,10 @@ export const defaultConfig: IConfig = {
showNetworkMenuButtonAnimation
:
true
,
networkMenuButtonAnimationLabel
:
'
Animation
'
,
identifier
:
'
symbol
'
,
interactionDrugProtein
:
'
DrugBank
'
,
interactionProteinProtein
:
'
STRING
'
,
interactionDrugProtein
:
'
NeDRex
'
,
interactionProteinProtein
:
'
NeDRex
'
,
associatedProteinDisorder
:
'
NeDRex
'
,
indicationDrugDisorder
:
'
NeDRex
'
,
nodeShadow
:
true
,
edgeShadow
:
true
,
autofillEdges
:
true
,
...
...
@@ -226,5 +233,5 @@ export const defaultConfig: IConfig = {
color
:
'
black
'
,
dashes
:
false
}
}
,
}
};
This diff is collapsed.
Click to expand it.
src/index.html
+
1
−
1
View file @
9c05a9f7
...
...
@@ -49,7 +49,7 @@
<drugst-one
id=
"netexp1"
pluginId=
"2"
config=
'{"physicsOn":true, "showLeftSidebar": true, "showSimpleAnalysis":true, "nodeGroups":{"patient":{"type":"patient","color":"black","font":{"color":"#ffffff"},"groupName":"Patient","shape":"image","image":"https://static.thenounproject.com/png/22780-200.png"},"condition":{"type":"condition","color":"black","font":{"color":"black"},"groupName":"Condition","shape":"text"},"important":{"type":"gene","color":"#ff881f","font":{"color":"#000000"},"groupName":"Important Gene","shape":"star"},"gene":{"type":"gene","color":"#4da300","font":{"color":"#ffffff"},"groupName":"Gene","shape":"circle"},"foundDrug":{"type":"drug","color":{"border":"#F12590","background":"#F12590"},"font":{"color":"#f0f0f0"},"groupName":"Drug","shape":"diamond"}},"edgeGroups":{"genotype":{"color":"black","groupName":"Relevant Gene"},"has-condition":{"color":"#000000","groupName":"Has Condition","dashes":[2,2]},"default":{"color":"#000000","groupName":"default edge"},"ggi":{"color":"#000000","groupName":"Interaction","dashes":[3,2]}},"identifier":"symbol","title":"Breast cancer example network","nodeShadow":true,"edgeShadow":false,"autofillEdges":false,"showLegend":true}'
config=
'{
"interactionDrugProtein":"NeDRex",
"physicsOn":true, "showLeftSidebar": true, "showSimpleAnalysis":true, "nodeGroups":{"patient":{"type":"patient","color":"black","font":{"color":"#ffffff"},"groupName":"Patient","shape":"image","image":"https://static.thenounproject.com/png/22780-200.png"},"condition":{"type":"condition","color":"black","font":{"color":"black"},"groupName":"Condition","shape":"text"},"important":{"type":"gene","color":"#ff881f","font":{"color":"#000000"},"groupName":"Important Gene","shape":"star"},"gene":{"type":"gene","color":"#4da300","font":{"color":"#ffffff"},"groupName":"Gene","shape":"circle"},"foundDrug":{"type":"drug","color":{"border":"#F12590","background":"#F12590"},"font":{"color":"#f0f0f0"},"groupName":"Drug","shape":"diamond"}},"edgeGroups":{"genotype":{"color":"black","groupName":"Relevant Gene"},"has-condition":{"color":"#000000","groupName":"Has Condition","dashes":[2,2]},"default":{"color":"#000000","groupName":"default edge"},"ggi":{"color":"#000000","groupName":"Interaction","dashes":[3,2]}},"identifier":"symbol","title":"Breast cancer example network","nodeShadow":true,"edgeShadow":false,"autofillEdges":false,"showLegend":true}'
network=
'{"nodes":[{"id":"patient-1","group":"patient","x":592,"y":446},{"id":"patient-2","group":"patient","x":235,"y":87},{"id":"patient-3","group":"patient","x":105,"y":369},{"id":"ATM","label":"ATM","group":"gene","x":289,"y":242},{"id":"BARD1","label":"BARD1","group":"gene","x":44,"y":250},{"id":"BRCA1","label":"BRCA1","group":"gene","x":466,"y":576},{"id":"BRCA2","label":"BRCA2","group":"gene","x":507,"y":285},{"id":"BRIP1","label":"BRIP1","group":"gene","x":54,"y":474},{"id":"CHEK2","label":"CHEK2","group":"gene","x":216,"y":590},{"id":"CDH1","label":"CDH1","group":"gene","x":320,"y":-57},{"id":"NF1","label":"NF1","group":"gene","x":481,"y":111},{"id":"NBN","label":"NBN","group":"gene","x":-57,"y":314},{"id":"PALB2","label":"PALB2","group":"gene","x":450,"y":190},{"id":"PTEN","label":"PTEN","group":"important","x":305,"y":494},{"id":"RAD51C","label":"RAD51C","group":"gene","x":182,"y":-90},{"id":"RAD51D","label":"RAD51D","group":"gene","x":368,"y":73},{"id":"STK11","label":"STK11","group":"gene","x":686,"y":330},{"id":"TP53","label":"TP53","group":"important","x":333,"y":316},{"id":"subtype-1","label":"Subtype 1","group":"condition","x":556,"y":171},{"id":"subtype-2","label":"Subtype 2","group":"condition","x":-87,"y":221}],"edges":[{"from":"BRCA1","to":"BRCA2","group":"ggi"},{"from":"ATM","to":"BARD1","group":"ggi"},{"from":"BRCA1","to":"CHEK2","group":"ggi"},{"from":"RAD51C","to":"RAD51D","group":"ggi"},{"from":"STK11","to":"TP53","group":"ggi"},{"from":"TP53","to":"PALB2","group":"ggi"},{"from":"TP53","to":"RAD51D","group":"ggi"},{"from":"TP53","to":"NF1","group":"ggi"},{"from":"TP53","to":"BRCA1","group":"ggi"},{"from":"TP53","to":"BRCA2","group":"ggi"},{"from":"PTEN","to":"BRCA1","group":"ggi"},{"from":"PTEN","to":"BRCA2","group":"ggi"},{"from":"TP53","to":"PTEN","group":"ggi"},{"from":"ATM","to":"PTEN","group":"ggi"},{"from":"CDH1","to":"RAD51D","group":"ggi"},{"from":"CDH1","to":"PALB2","group":"ggi"},{"from":"NBN","to":"BRIP1","group":"ggi"},{"from":"BRIP1","to":"PTEN","group":"ggi"},{"from":"patient-1","to":"BRCA1","group":"genotype"},{"from":"patient-1","to":"TP53","group":"genotype"},{"from":"patient-1","to":"BRCA2","group":"genotype"},{"from":"patient-1","to":"PTEN","group":"genotype"},{"from":"patient-2","to":"TP53","group":"genotype"},{"from":"patient-2","to":"NF1","group":"genotype"},{"from":"patient-2","to":"BARD1","group":"genotype"},{"from":"patient-3","to":"TP53","group":"genotype"},{"from":"patient-3","to":"PTEN","group":"genotype"},{"from":"patient-3","to":"NBN","group":"genotype"},{"from":"patient-1","to":"subtype-1","group":"has-condition"},{"from":"patient-2","to":"subtype-1","group":"has-condition"},{"from":"patient-3","to":"subtype-2","group":"has-condition"}]}'
>
</drugst-one>
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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