Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
morpheus.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Daria Zenkova
morpheus.js
Commits
9388ce29
Commit
9388ce29
authored
Apr 01, 2016
by
joshua-gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed initial display when "color by"
parent
714d3107
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
47 deletions
+49
-47
src/ui/heat_map_color_scheme_chooser.js
src/ui/heat_map_color_scheme_chooser.js
+1
-0
src/ui/heat_map_options.js
src/ui/heat_map_options.js
+48
-47
No files found.
src/ui/heat_map_color_scheme_chooser.js
View file @
9388ce29
...
...
@@ -259,6 +259,7 @@ morpheus.HeatMapColorSchemeChooser.prototype = {
if
(
this
.
colorScheme
.
setCurrentValue
)
{
this
.
colorScheme
.
setCurrentValue
(
this
.
currentValue
);
}
this
.
setColorScheme
(
this
.
colorScheme
);
},
setColorScheme
:
function
(
colorScheme
)
{
this
.
colorScheme
=
colorScheme
;
...
...
src/ui/heat_map_options.js
View file @
9388ce29
morpheus
.
HeatMapOptions
=
function
(
controller
)
{
var
items
=
[
{
name
:
'
color_by
'
,
required
:
true
,
type
:
'
select
'
,
options
:
[
'
(None)
'
].
concat
(
morpheus
.
MetadataUtil
{
name
:
'
color_by
'
,
required
:
true
,
type
:
'
select
'
,
options
:
[
'
(None)
'
].
concat
(
morpheus
.
MetadataUtil
.
getMetadataNames
(
controller
.
getProject
()
.
getFullDataset
().
getRowMetadata
())),
value
:
controller
.
heatmap
.
getColorScheme
()
value
:
controller
.
heatmap
.
getColorScheme
()
.
getSeparateColorSchemeForRowMetadataField
()
},
{
name
:
'
color_by_value
'
,
required
:
true
,
type
:
'
select
'
,
options
:
[]
},
{
name
:
'
load_predefined_scheme
'
,
required
:
true
,
type
:
'
select
'
,
options
:
[
{
name
:
''
,
value
:
''
},
{
name
:
'
color_by_value
'
,
required
:
true
,
type
:
'
select
'
,
options
:
[]
},
{
name
:
'
load_predefined_scheme
'
,
required
:
true
,
type
:
'
select
'
,
options
:
[
{
name
:
''
,
value
:
''
},
{
name
:
'
relative
'
,
value
:
'
gene
'
},
{
...
...
@@ -40,10 +40,10 @@ morpheus.HeatMapOptions = function(controller) {
name
:
'
fixed (-90, 90)
'
,
value
:
'
100scale1
'
}
]
},
{
name
:
'
save_color_scheme
'
,
type
:
'
button
'
},
{
},
{
name
:
'
save_color_scheme
'
,
type
:
'
button
'
},
{
name
:
'
load_color_scheme
'
,
type
:
'
file
'
}
];
...
...
@@ -78,28 +78,28 @@ morpheus.HeatMapOptions = function(controller) {
});
}
var
displayItems
=
[
{
name
:
'
show_grid
'
,
required
:
true
,
type
:
'
checkbox
'
,
value
:
controller
.
heatmap
.
isDrawGrid
()
},
{
name
:
'
row_size
'
,
required
:
true
,
type
:
'
text
'
,
col
:
'
col-xs-4
'
,
value
:
morpheus
.
Util
.
nf
(
controller
.
heatmap
.
getRowPositions
()
{
name
:
'
show_grid
'
,
required
:
true
,
type
:
'
checkbox
'
,
value
:
controller
.
heatmap
.
isDrawGrid
()
},
{
name
:
'
row_size
'
,
required
:
true
,
type
:
'
text
'
,
col
:
'
col-xs-4
'
,
value
:
morpheus
.
Util
.
nf
(
controller
.
heatmap
.
getRowPositions
()
.
getSize
())
},
{
name
:
'
column_size
'
,
required
:
true
,
type
:
'
text
'
,
col
:
'
col-xs-4
'
,
value
:
morpheus
.
Util
.
nf
(
controller
.
heatmap
},
{
name
:
'
column_size
'
,
required
:
true
,
type
:
'
text
'
,
col
:
'
col-xs-4
'
,
value
:
morpheus
.
Util
.
nf
(
controller
.
heatmap
.
getColumnPositions
().
getSize
())
}
];
}
];
if
(
controller
.
rowDendrogram
)
{
displayItems
.
push
({
...
...
@@ -286,6 +286,7 @@ morpheus.HeatMapOptions = function(controller) {
controller
.
project
.
getFullDataset
().
getRowMetadata
()
.
getByName
(
separateSchemesField
)).
keys
()));
}
colorSchemeChooser
.
setColorScheme
(
controller
.
heatmap
.
getColorScheme
());
if
(
separateSchemesField
!=
null
)
{
colorSchemeChooser
.
setCurrentValue
(
$colorByValue
.
val
());
...
...
@@ -363,11 +364,11 @@ morpheus.HeatMapOptions = function(controller) {
controller
.
heatmap
.
repaint
();
}).
fail
(
function
()
{
morpheus
.
FormBuilder
.
showInModal
({
title
:
'
Error
'
,
html
:
'
Unable to read saved color scheme.
'
});
});
morpheus
.
FormBuilder
.
showInModal
({
title
:
'
Error
'
,
html
:
'
Unable to read saved color scheme.
'
});
});
}
}
...
...
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