rbbt-rest 1.8.53 → 1.8.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c9a1692ddc71512f10e55f78e92351df7f4467e
4
- data.tar.gz: d82b4f419488fabdec95fda1bad0ddddec457e65
3
+ metadata.gz: 6716eb64f85a3f3e6d72310e9d09f1a684f5721a
4
+ data.tar.gz: cb0a0bc5263652ac50cd0b00937184b32208b560
5
5
  SHA512:
6
- metadata.gz: 6bbdf93ba911ca609933389d2108a3f538113645fa1283aed8f0c3945683083724050992ee5f0fc0aecccad71a75f18043052c3100c55b1cd9782b3b2afda6a0
7
- data.tar.gz: 453460f37c3594853499a226e38582a4e415647189b8f867090fa433a6001a07a30454c5174c607dd01f99e775acbf4a1c3a868a6d44a515615b4be80fa56e99
6
+ metadata.gz: f0a5df5ee5734f0fb8df1c03ec7b3b957cf7fb0e317134ead50cb60950dccad225bbfba96437683c7808fc4b022c5ce981dd7463152357a8d444667eb9507cdc
7
+ data.tar.gz: 3f5b0455920ee70bc8000e6e124c4a65ae6def0638dd4f4dbe7619a61f9517296606a828106fe3bb0afa3a6491b87880bdcbc7c810134dc79efaf9ddd175126b
@@ -78,9 +78,20 @@ module NumericValue
78
78
 
79
79
  self.format =(<<-EOF
80
80
  p-value
81
+ p-value
81
82
  p.value
82
83
  P-value
83
84
  P.value
85
+ p-value score
86
+ p-value score
87
+ p.value score
88
+ P-value score
89
+ P.value score
90
+ p-value Score
91
+ p-value Score
92
+ p.value Score
93
+ P-value Score
94
+ P.value Score
84
95
  p-values
85
96
  p.values
86
97
  P-values
@@ -82,10 +82,13 @@ table, table.responsive
82
82
  .entity_list
83
83
  width: auto !important
84
84
  clear: both
85
- span.title
85
+ .title
86
86
  border: none !important
87
- > a
88
- padding: 0.5em
87
+ & > a
88
+ display: inline-block
89
+ padding: 0.5em 1em
90
+ span.title
91
+ border: none !important
89
92
 
90
93
  table
91
94
  .caption, .title
@@ -11,7 +11,20 @@
11
11
 
12
12
  - if files.any?
13
13
  %dt.ui.header Files
14
- %dd.job_files
14
+ %dd.job_files.ui.basic.segment
15
+ - files_by_dir = {}
16
+ - files.each do |file|
17
+ - dir = File.dirname(file)
18
+ - files_by_dir[dir] ||= []
19
+ - files_by_dir[dir] << file
15
20
  .ui.buttons
16
- - files.sort.each do |file|
21
+ - (files_by_dir["."] || []).sort.each do |file|
17
22
  %a.small.ui.button(href="/#{[workflow.to_s, task, jobname, "file", file] * "/"}")= file
23
+ - (files_by_dir.keys - ["."]).each do |dir|
24
+ %dl
25
+ %dt.ui.header #{dir}/
26
+ %dd
27
+ .ui.buttons
28
+ - files_by_dir[dir].each do |file|
29
+ %a.small.ui.button(href="/#{[workflow.to_s, task, jobname, "file", file] * "/"}")= File.basename(file)
30
+
@@ -8,6 +8,7 @@ rbbt.exception.report = function(err){
8
8
  console.log(err)
9
9
  console.log("Error: " + err)
10
10
  var stack = err.stack
11
+ console.log("Error: " + stack)
11
12
  if(undefined === stack) stack = "No stack trace"
12
13
  if (rbbt.modal){
13
14
  stack = "<ul class='stacktrace'><li>" + stack.replace(/\n/g, '</li><li>') + '<li/></ul>'
@@ -26,7 +26,7 @@ rbbt.plots.aes.map_aesthetic = function(aes, mapper, map_obj){
26
26
  return get_sign_gradient(aes, 'red', 'grey', 'green')
27
27
  case 'map':
28
28
  if (typeof aes == 'object')
29
- return aes.map(function(value){ return map_obj[value.toString()] })
29
+ return aes.map(function(value){ if (value !== undefined && value != null ) value = value.toString(); return map_obj[value] })
30
30
  else
31
31
  return map_obj[aes]
32
32
  case 'function':
@@ -78,29 +78,42 @@ rbbt.plots.graph.build_cytoscapejs = function(graph_model){
78
78
  rbbt.plots.graph.view_cytoscapejs = function(graph_model, elem, style, layout, extra){
79
79
 
80
80
  var default_style = [ // the stylesheet for the graph
81
+ // Default values
81
82
  {
82
83
  selector: 'node',
83
84
  style: { 'background-color': 'blue', 'label': 'data(id)' }
84
85
  },
85
-
86
+ {
87
+ selector: 'edge',
88
+ style: { 'width': 1, 'line-color': 'grey', 'target-arrow-color': '#ccc', 'target-arrow-shape': 'triangle' }
89
+ },
86
90
  {
87
91
  selector: 'node[label]',
88
92
  style: {'label': 'data(label)' }
89
93
  },
90
-
91
94
  {
92
95
  selector: 'node[color]',
93
96
  style: { 'background-color': 'data(color)' }
94
97
  },
95
-
96
98
  {
97
- selector: 'edge',
98
- style: { 'width': 1, 'line-color': 'grey', 'target-arrow-color': '#ccc', 'target-arrow-shape': 'triangle' }
99
+ selector: 'node[shape]',
100
+ style: { 'shape': 'data(shape)' }
99
101
  },
102
+
100
103
  {
101
104
  selector: 'edge[color]',
102
- style: { 'line-color': 'data(color)'}
105
+ style: { 'line-color': 'data(color)',
106
+ 'target-arrow-color': 'data(color)'}
107
+ },
108
+ {
109
+ selector: 'edge[target-arrow-shape]',
110
+ style: { 'target-arrow-shape': 'data(target-arrow-shape)'}
111
+ },
112
+ {
113
+ selector: 'edge[target-arrow-color]',
114
+ style: { 'target-arrow-color': 'data(target-arrow-color)'}
103
115
  }
116
+
104
117
  ]
105
118
 
106
119
  var default_layout = { name: 'cose' }
@@ -113,22 +126,24 @@ rbbt.plots.graph.view_cytoscapejs = function(graph_model, elem, style, layout, e
113
126
  rbbt.plots.graph.update(graph_model).then(function(updated_model){
114
127
  var cy_model = rbbt.plots.graph.build_cytoscapejs(updated_model)
115
128
 
116
- console.log(cy_model)
117
129
  require_js(['/plugins/cytoscapejs/cytoscape.js'], function(){
118
130
  var cy_params = {
119
131
  container: elem,
120
132
  elements: cy_model.elements,
121
133
  style: style,
122
- layout: layout,
123
134
  }
124
135
 
125
- if (undefined !== extra) forHash(extra,function(k,v){ cy_params[k,v] })
136
+ if (undefined !== extra) forHash(extra, function(k,v){ cy_params[k,v] })
126
137
 
127
138
  var cy = cytoscape(cy_params)
128
139
 
129
- deferred.resolve(cy)
140
+ cy.layout(default_layout)
141
+
142
+ cy.one('layoutready', function(){
143
+ deferred.resolve(this)
144
+ })
130
145
  })
131
- },rbbt.exception.report)
146
+ }, rbbt.exception.report)
132
147
 
133
148
  return deferred.promise
134
149
  }
@@ -37,6 +37,9 @@ rbbt.plots.graph.get_entities = function(graph_model){
37
37
  }
38
38
 
39
39
  rbbt.plots.aes.complete_source_target = function(list){
40
+ if (undefined === list.aes) list.aes = {}
41
+ if (undefined === list.properties) list.properties = {}
42
+
40
43
  if (undefined === list.aes.source && undefined === list.aes.source){
41
44
  if (undefined === list.properties.source && undefined === list.properties.source){
42
45
  var source = [];
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.53
4
+ version: 1.8.55
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-10 00:00:00.000000000 Z
11
+ date: 2017-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake