Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
complex
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chanaka
complex
Commits
2cc50b91
Commit
2cc50b91
authored
Jun 25, 2018
by
Niklas Mähler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filter orthology edges on p-value
parent
ff983b7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
index.php
index.php
+2
-0
complex.js
js/complex.js
+8
-1
table_network.js
js/table_network.js
+12
-2
No files found.
index.php
View file @
2cc50b91
...
...
@@ -47,6 +47,8 @@
<label
for=
"th1"
>
Co-expression threshold:
<span
id=
"th1_span"
>
(>=0.990)
</label>
<input
type=
"range"
min=
"0.95"
max=
"1"
step=
"0.001"
value=
"0.99"
id=
"th1"
name=
"th1"
>
<label
for=
"complex-pval-threshold"
>
P-value threshold:
<span
id=
"complex-pval-threshold-value"
>
0.05
</span></label>
<input
id=
"complex-pval-threshold"
type=
"range"
min=
"0"
max=
"0.2"
step=
"0.01"
value=
"0.05"
>
<button
id=
"align_to_species_button"
class=
"btn btn-4 btn-4c"
>
Align
</button>
</div>
</div>
...
...
js/complex.js
View file @
2cc50b91
...
...
@@ -160,7 +160,9 @@ window.onload = init(function(d) {
populateNetworkSelect
(
d
,
'
#network-buttons
'
);
view1
=
new
TableNetwork
(
'
#active-network-table
'
,
'
#other-network-table
'
,
'
#cytoscapeweb1
'
);
view1
=
new
TableNetwork
(
'
#active-network-table
'
,
'
#other-network-table
'
,
'
#cytoscapeweb1
'
,
$
(
'
#complex-pval-threshold
'
).
val
());
$
(
"
#load-example-button
"
).
click
(
function
(
event
)
{
event
.
stopPropagation
();
...
...
@@ -176,5 +178,10 @@ window.onload = init(function(d) {
align
();
});
$
(
'
#complex-pval-threshold
'
).
on
(
'
change
'
,
function
()
{
view1
.
setPvalueThreshold
(
this
.
value
);
$
(
'
#complex-pval-threshold-value
'
).
html
(
this
.
value
);
})
$
(
"
#prebox
"
).
delay
(
500
).
fadeOut
();
});
js/table_network.js
View file @
2cc50b91
...
...
@@ -5,7 +5,11 @@ var layoutOptions = {
refresh
:
60
};
function
TableNetwork
(
active_table_element
,
other_table_element
,
network_element
)
{
function
TableNetwork
(
active_table_element
,
other_table_element
,
network_element
,
pvalueThreshold
)
{
this
.
pvalueThreshold
=
pvalueThreshold
;
this
.
activeTable
=
$
(
active_table_element
).
DataTable
({
searching
:
false
,
columnDefs
:
[{
...
...
@@ -127,6 +131,10 @@ function TableNetwork(active_table_element, other_table_element, network_element
self
.
otherTable
.
rows
().
deselect
();
}
this
.
setPvalueThreshold
=
function
(
p
)
{
self
.
pvalueThreshold
=
p
;
}
/**
* Select a node
*
...
...
@@ -137,7 +145,9 @@ function TableNetwork(active_table_element, other_table_element, network_element
var
selectNode
=
function
(
node
,
fromTable
)
{
// Display orthology edges
node
.
selectify
().
select
().
unselectify
();
node
.
connectedEdges
(
'
.orthology
'
).
style
(
'
display
'
,
'
element
'
);
node
.
connectedEdges
(
`.orthology[conservation_pvalue <
${
self
.
pvalueThreshold
}
]`
)
.
show
();
// Select the orthologs in the connected networks
if
(
node
.
data
(
'
parent
'
)
===
`network
${
self
.
activeNetworkID
}
`
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment