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
714d3107
Commit
714d3107
authored
Apr 01, 2016
by
joshua-gould
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto scale 'copynumber' files
parent
66328feb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
src/ui/heat_map.js
src/ui/heat_map.js
+20
-3
No files found.
src/ui/heat_map.js
View file @
714d3107
...
...
@@ -681,6 +681,9 @@ morpheus.HeatMap.prototype = {
gapSize
:
10
,
updatingScroll
:
false
,
autoDisplay
:
function
(
options
)
{
if
(
options
.
filename
==
null
)
{
options
.
filename
=
''
;
}
var
colorScheme
;
if
(
options
.
extension
===
'
segtab
'
||
options
.
extension
===
'
seg
'
)
{
colorScheme
=
{
...
...
@@ -736,6 +739,20 @@ morpheus.HeatMap.prototype = {
color
:
'
red
'
}
]
};
}
else
if
(
options
.
filename
.
toLowerCase
().
indexOf
(
'
copynumber
'
)
!==
-
1
)
{
colorScheme
=
{
type
:
'
fixed
'
,
map
:
[
{
value
:
-
1.5
,
color
:
'
blue
'
},
{
value
:
0
,
color
:
'
white
'
},
{
value
:
1.5
,
color
:
'
red
'
}
]
};
}
if
(
colorScheme
&&
options
.
filename
)
{
...
...
@@ -1557,8 +1574,8 @@ morpheus.HeatMap.prototype = {
}
if
(
morpheus
.
DatasetUtil
.
getSeriesIndex
(
this
.
project
.
getFullDataset
(),
'
ccf
'
)
!==
-
1
)
{
this
.
options
.
sizeBy
=
'
ccf
'
;
.
getFullDataset
(),
'
allelic_fraction
'
)
!==
-
1
)
{
this
.
options
.
sizeBy
=
'
allelic_fraction
'
;
}
}
...
...
@@ -1579,7 +1596,7 @@ morpheus.HeatMap.prototype = {
sourcesSet
.
forEach
(
function
(
source
)
{
_this
.
autoDisplay
({
extension
:
morpheus
.
Util
.
getExtension
(
source
),
filename
:
source
filename
:
''
+
source
});
});
}
...
...
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