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
0f74975f
Commit
0f74975f
authored
Sep 06, 2016
by
Daria Zenkova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
labels work only with geom_text, but not with geom_text_repel, that's upsetting me :(
parent
eae9abb9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
27 deletions
+39
-27
js/morpheus-latest.min.js
js/morpheus-latest.min.js
+20
-20
src/matrix/dataset.js
src/matrix/dataset.js
+0
-3
src/matrix/dataset_util.js
src/matrix/dataset_util.js
+1
-1
src/tools/pcaplot_tool.js
src/tools/pcaplot_tool.js
+18
-3
No files found.
js/morpheus-latest.min.js
View file @
0f74975f
This diff is collapsed.
Click to expand it.
src/matrix/dataset.js
View file @
0f74975f
...
@@ -181,9 +181,6 @@ morpheus.Dataset.prototype = {
...
@@ -181,9 +181,6 @@ morpheus.Dataset.prototype = {
}
}
},
},
getESSession
:
function
()
{
getESSession
:
function
()
{
if
(
this
.
esSession
==
null
)
{
this
.
setESSession
();
}
return
this
.
esSession
;
return
this
.
esSession
;
}
}
...
...
src/matrix/dataset_util.js
View file @
0f74975f
...
@@ -879,7 +879,7 @@ morpheus.DatasetUtil.toProtoMessage = function (dataset) {
...
@@ -879,7 +879,7 @@ morpheus.DatasetUtil.toProtoMessage = function (dataset) {
attrName
:
"
dim
"
,
attrName
:
"
dim
"
,
attrValue
:
{
attrValue
:
{
rclass
:
"
INTEGER
"
,
rclass
:
"
INTEGER
"
,
intValue
:
[
dataset
.
rows
,
dataset
.
columns
]
intValue
:
[
dataset
.
getColumnCount
(),
dataset
.
getRowCount
()
]
}
}
},
{
},
{
rclass
:
"
STRING
"
,
rclass
:
"
STRING
"
,
...
...
src/tools/pcaplot_tool.js
View file @
0f74975f
...
@@ -115,7 +115,7 @@ morpheus.PcaPlotTool = function (chartOptions) {
...
@@ -115,7 +115,7 @@ morpheus.PcaPlotTool = function (chartOptions) {
formBuilder
.
append
({
formBuilder
.
append
({
name
:
'
color
'
,
name
:
'
color
'
,
type
:
'
bootstrap-select
'
,
type
:
'
bootstrap-select
'
,
options
:
numericO
ptions
options
:
o
ptions
});
});
formBuilder
.
append
({
formBuilder
.
append
({
name
:
'
x-axis
'
,
name
:
'
x-axis
'
,
...
@@ -127,6 +127,11 @@ morpheus.PcaPlotTool = function (chartOptions) {
...
@@ -127,6 +127,11 @@ morpheus.PcaPlotTool = function (chartOptions) {
type
:
'
bootstrap-select
'
,
type
:
'
bootstrap-select
'
,
options
:
pcaOptions
options
:
pcaOptions
});
});
formBuilder
.
append
({
name
:
'
label
'
,
type
:
'
bootstrap-select
'
,
options
:
columnOptions
});
formBuilder
.
append
({
formBuilder
.
append
({
name
:
'
draw
'
,
name
:
'
draw
'
,
...
@@ -139,7 +144,7 @@ morpheus.PcaPlotTool = function (chartOptions) {
...
@@ -139,7 +144,7 @@ morpheus.PcaPlotTool = function (chartOptions) {
function
setVisibility
()
{
function
setVisibility
()
{
formBuilder
.
setOptions
(
'
color
'
,
options
,
true
);
formBuilder
.
setOptions
(
'
color
'
,
options
,
true
);
formBuilder
.
setOptions
(
'
size
'
,
numericOptions
,
true
);
formBuilder
.
setOptions
(
'
size
'
,
numericOptions
,
true
);
formBuilder
.
set
Enabled
(
'
draw
'
,
true
);
formBuilder
.
set
Options
(
'
label
'
,
columnOptions
,
true
);
}
}
this
.
tooltip
=
[];
this
.
tooltip
=
[];
...
@@ -293,12 +298,17 @@ morpheus.PcaPlotTool.prototype = {
...
@@ -293,12 +298,17 @@ morpheus.PcaPlotTool.prototype = {
var
project
=
this
.
project
;
var
project
=
this
.
project
;
if
(
_this
.
project
.
getFullDataset
().
getESSession
())
{
_this
.
formBuilder
.
setEnabled
(
'
draw
'
,
true
);
}
this
.
formBuilder
.
$form
.
find
(
'
[name="draw"]
'
).
on
(
'
click
'
,
function
()
{
this
.
formBuilder
.
$form
.
find
(
'
[name="draw"]
'
).
on
(
'
click
'
,
function
()
{
_this
.
$chart
.
empty
();
_this
.
$chart
.
empty
();
var
colorBy
=
_this
.
formBuilder
.
getValue
(
'
color
'
);
var
colorBy
=
_this
.
formBuilder
.
getValue
(
'
color
'
);
var
sizeBy
=
_this
.
formBuilder
.
getValue
(
'
size
'
);
var
sizeBy
=
_this
.
formBuilder
.
getValue
(
'
size
'
);
var
pc1
=
_this
.
formBuilder
.
getValue
(
'
x-axis
'
);
var
pc1
=
_this
.
formBuilder
.
getValue
(
'
x-axis
'
);
var
pc2
=
_this
.
formBuilder
.
getValue
(
'
y-axis
'
);
var
pc2
=
_this
.
formBuilder
.
getValue
(
'
y-axis
'
);
var
label
=
_this
.
formBuilder
.
getValue
(
'
label
'
);
console
.
log
(
'
draw plot button clicked
'
);
console
.
log
(
'
draw plot button clicked
'
);
var
dataset
=
_this
.
project
.
getSelectedDataset
({
var
dataset
=
_this
.
project
.
getSelectedDataset
({
...
@@ -314,7 +324,7 @@ morpheus.PcaPlotTool.prototype = {
...
@@ -314,7 +324,7 @@ morpheus.PcaPlotTool.prototype = {
console
.
log
(
columnIndices
);
console
.
log
(
columnIndices
);
console
.
log
(
rowIndices
);
console
.
log
(
rowIndices
);
console
.
log
(
colorBy
,
sizeBy
,
pc1
,
pc2
);
console
.
log
(
colorBy
,
sizeBy
,
pc1
,
pc2
,
label
);
arguments
=
{
arguments
=
{
es
:
expressionSet
,
es
:
expressionSet
,
c1
:
pc1
,
c1
:
pc1
,
...
@@ -332,6 +342,11 @@ morpheus.PcaPlotTool.prototype = {
...
@@ -332,6 +342,11 @@ morpheus.PcaPlotTool.prototype = {
if
(
sizeBy
!=
""
)
{
if
(
sizeBy
!=
""
)
{
arguments
.
size
=
sizeBy
;
arguments
.
size
=
sizeBy
;
}
}
if
(
label
!=
""
)
{
arguments
.
label
=
label
;
}
console
.
log
(
arguments
);
console
.
log
(
arguments
);
var
req
=
ocpu
.
call
(
"
pcaPlot
"
,
arguments
,
function
(
session
)
{
var
req
=
ocpu
.
call
(
"
pcaPlot
"
,
arguments
,
function
(
session
)
{
...
...
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