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
GitLab 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
2ebbcadf
Commit
2ebbcadf
authored
3 years ago
by
AndiMajore
Browse files
Options
Downloads
Patches
Plain Diff
allowing also objects as config or network and not only strings
parent
50a25149
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/dialogs/launch-analysis/launch-analysis.component.ts
+3
-3
3 additions, 3 deletions
src/app/dialogs/launch-analysis/launch-analysis.component.ts
src/app/pages/explorer-page/explorer-page.component.ts
+7
-8
7 additions, 8 deletions
src/app/pages/explorer-page/explorer-page.component.ts
with
10 additions
and
11 deletions
src/app/dialogs/launch-analysis/launch-analysis.component.ts
+
3
−
3
View file @
2ebbcadf
...
...
@@ -120,9 +120,9 @@ export class LaunchAnalysisComponent implements OnInit, OnChanges {
parameters
.
target
=
this
.
target
===
'
drug
'
?
'
drug
'
:
'
drug-target
'
;
// pass network data to reconstruct network in analysis result to connect non-proteins to results
// drop interactions in nodes beforehand to no cause cyclic error, information is contained in edges
//
this.inputNetwork.nodes.forEach(node => {
//
delete node.interactions
//
});
this
.
inputNetwork
.
nodes
.
forEach
(
node
=>
{
delete
node
.
interactions
});
if
(
this
.
algorithm
===
'
trustrank
'
)
{
parameters
.
damping_factor
=
this
.
trustrankDampingFactor
;
...
...
This diff is collapsed.
Click to expand it.
src/app/pages/explorer-page/explorer-page.component.ts
+
7
−
8
View file @
2ebbcadf
...
...
@@ -26,7 +26,7 @@ import domtoimage from 'dom-to-image';
import
{
NetworkSettings
}
from
'
../../network-settings
'
;
import
{
defaultConfig
,
EdgeGroup
,
IConfig
,
InteractionDatabase
,
NodeGroup
}
from
'
../../config
'
;
import
{
NetexControllerService
}
from
'
src/app/services/netex-controller/netex-controller.service
'
;
import
{
downLoadFile
,
removeDuplicateObjectsFromList
}
from
'
../../utils
'
import
{
downLoadFile
,
removeDuplicateObjectsFromList
}
from
'
../../utils
'
;
import
*
as
merge
from
'
lodash/fp/merge
'
;
import
{
AnalysisPanelComponent
}
from
'
src/app/components/analysis-panel/analysis-panel.component
'
;
...
...
@@ -53,8 +53,8 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
public
id
:
undefined
|
string
;
@
Input
()
public
set
config
(
config
:
string
|
undefined
)
{
if
(
typeof
config
=
==
'
undefined
'
)
{
public
set
config
(
config
:
string
|
undefined
|
object
)
{
if
(
config
==
null
)
{
return
;
}
if
(
this
.
id
==
null
)
...
...
@@ -62,7 +62,7 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
this
.
config
=
config
;
},
200
);
// add settings to config
const
configObj
=
JSON
.
parse
(
config
);
const
configObj
=
typeof
config
===
'
object
'
?
config
:
JSON
.
parse
(
config
);
this
.
myConfig
=
merge
(
this
.
myConfig
,
configObj
);
// update Drugst.One according to the settings
...
...
@@ -108,12 +108,11 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
}
@
Input
()
public
set
network
(
network
:
string
|
undefined
)
{
if
(
typeof
network
==
=
'
undefined
'
)
{
public
set
network
(
network
:
string
|
undefined
|
object
)
{
if
(
network
==
null
)
{
return
;
}
this
.
networkJSON
=
network
;
this
.
networkJSON
=
typeof
network
===
'
object
'
?
JSON
.
stringify
(
network
)
:
network
;
this
.
createNetwork
();
}
...
...
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