rbbt-rest 1.2.35 → 1.2.36
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 +8 -8
- data/share/views/compass/help.sass +4 -6
- data/share/views/help.haml +25 -11
- data/share/views/help/UI.haml +41 -39
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmNlYzA3OWI5MDE5ZTJiZmQ0OWI0MWRhZDhmYmNjZTBhYjUwOWE2NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDU5MDA1OWVmNGVhZjBhZDc4YTdmMDdjMjg3MjllNTI1ZWY5N2MzMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjJiZTIxZmUzNjAwYzAxZWU5YzliYzllZTAxOGM0NDk3OWUyZTk2NzU5N2Yw
|
10
|
+
MDIxNzkwNThhNGU3Y2ExOTIyMDA0YzIwN2Q2OTUyYWU2MzcwOTk5N2MxYmU0
|
11
|
+
NjNkNWRlMTU3OTBkY2M1OTNmNTlmNzhlMzE2NWExYTI0MmUzY2Q=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWZmM2FlYWM1M2M3ZWNlYjdlYzQ4N2EwMzc0Yzg3YTJiMmEwYTRjMWVhZmFl
|
14
|
+
OTk5MTY1MTgxZTE5MDgyMGEwOWUwNWRhNDZkZTgxMzc0YmY5ZDcyMjcyMDM1
|
15
|
+
MGFlZDQzZTA1MTNjYWFiNjYyMWM0MmQ4ZDY3NzMxMmI5YTVkYzc=
|
@@ -3,15 +3,13 @@ a.help
|
|
3
3
|
display: block
|
4
4
|
|
5
5
|
.UI
|
6
|
-
dd
|
7
|
-
.description, .images
|
8
|
-
+grid-column(6, $float:left)
|
9
|
-
|
10
6
|
& > dd
|
11
7
|
+grid-row()
|
12
8
|
& > .description, .images
|
13
|
-
|
14
|
-
|
9
|
+
@media #{$only-large}
|
10
|
+
+grid-column(6, $float:left)
|
11
|
+
@media #{$not-large}
|
12
|
+
width: 100%
|
15
13
|
|
16
14
|
& > .images > dl
|
17
15
|
& > dt
|
data/share/views/help.haml
CHANGED
@@ -2,29 +2,41 @@
|
|
2
2
|
|
3
3
|
##Overview
|
4
4
|
|
5
|
-
This application is designed for integration of data and functionalities.
|
6
|
-
|
7
|
-
unambiguously identified and be subject of investigation. Examples of
|
5
|
+
This application is designed for the integration of data and functionalities.
|
6
|
+
Its design is based on the idea of the `Entity`: anything that can be
|
7
|
+
unambiguously identified, and be subject of investigation. Examples of
|
8
8
|
entities are: genes, proteins, SNPs, samples, pathways, etc.
|
9
9
|
|
10
|
-
Each entity has a report, which depends on the type of entity it is.
|
10
|
+
Each entity has a report, which depends on the type of entity it is. All
|
11
11
|
reports are computed on the fly and cached. In addition to the main reports,
|
12
12
|
entities have `actions`, which are sub-reports that implement particular
|
13
|
-
analysis. For instance, for gene entities
|
13
|
+
analysis. For instance, for gene entities one of the actions is to display a
|
14
14
|
summary of the relevance of that gene across the collection of studies that
|
15
15
|
you have access to. In addition to entities, there are reports for lists of
|
16
|
-
entities and for entity maps, which are tables that relate entities to
|
17
|
-
such as genes to their average mutation frequency.
|
16
|
+
entities and for entity maps, which are tables that relate entities to
|
17
|
+
values, such as genes to their average mutation frequency.
|
18
|
+
|
19
|
+
##Important definitions
|
20
|
+
|
21
|
+
Its common to think of coding variants as synonymous or non-synonymous. We
|
22
|
+
find that this distinction is slightly inappropriate; a variant might be
|
23
|
+
synonymous and still have a consequence in the protein isoform, for instance
|
24
|
+
variants affecting exon junctions and that might interfere with splicing.
|
25
|
+
Isntead of this nomenclature we prefer to talk about `relevant` and `not
|
26
|
+
relevant` variants. Our current definition of `relevant` are variants that
|
27
|
+
can potentially alter the function of at least one of the isoforms of a gene;
|
28
|
+
this currently includes non-synonymous variants and variants affecting
|
29
|
+
splicing sites (-2 to 8 bases of the donor end and -8 to 3 bases of the
|
30
|
+
acceptor end).
|
18
31
|
|
19
|
-
:markdown
|
20
32
|
##User interface
|
21
33
|
|
22
34
|
The user interface offers a general structure for all reports that allows to
|
23
35
|
enact workflows, explore the results and connect functionalities with one
|
24
|
-
another.
|
36
|
+
another. This web site is 'responsive', meaning that it adapts to the size
|
25
37
|
of the device you are using: computer, tablet, or phone. On small devices many
|
26
38
|
of the layout elements shift around or get hidden behind toggle buttons to
|
27
|
-
|
39
|
+
accommodate themselves better to the screen size. The examples bellow are taken
|
28
40
|
from a computer screen.
|
29
41
|
|
30
42
|
=partial_render('help/UI')
|
@@ -36,13 +48,14 @@
|
|
36
48
|
core functionalities through the Workflow subsystem. This is the same
|
37
49
|
interface that is used as a REST web server, so it serves to document it.
|
38
50
|
|
39
|
-
|
40
51
|
%table
|
41
52
|
%caption Available workflows on this site
|
53
|
+
|
42
54
|
%thead
|
43
55
|
%tr
|
44
56
|
%th Workflow
|
45
57
|
%th Description
|
58
|
+
|
46
59
|
%tbody
|
47
60
|
- Sinatra::RbbtRESTWorkflow::WORKFLOWS.each do |workflow|
|
48
61
|
- next if workflow.asynchronous_exports.empty? and workflow.synchronous_exports.empty? and workflow.exec_exports.empty?
|
@@ -57,3 +70,4 @@
|
|
57
70
|
No description
|
58
71
|
- else
|
59
72
|
= description.split("\n\n").first
|
73
|
+
|
data/share/views/help/UI.haml
CHANGED
@@ -7,27 +7,27 @@
|
|
7
7
|
|
8
8
|
This application presents reports for individual entities, lists of
|
9
9
|
entities, and entity maps. Each type of entity (gene, study, pathway, etc.)
|
10
|
-
has its own report template, and they are prepared on
|
10
|
+
has its own report template, and they are prepared on-demand.
|
11
11
|
|
12
12
|
All reports have the same overall structure; the images show a report
|
13
13
|
for a genotyping study from the ICGC project. The top-bar is always
|
14
14
|
there and provides a placeholder for several functionalities, most
|
15
15
|
importantly the control of `favourites`.
|
16
|
-
|
17
16
|
|
18
17
|
Bellow the top-bar comes the report itself. It consists of a title, a
|
19
18
|
side-bar, a description, and an `action controller`. In general the
|
20
19
|
side-bar is used to show general meta-data about the entity and the
|
21
20
|
description to show a brief overview.
|
22
21
|
|
23
|
-
The action controller offers access to `actions
|
22
|
+
The action controller offers access to `actions`, which are like
|
24
23
|
sub-reports. Each type of entity has its own actions. If the entity
|
25
|
-
type in particular does not have any action defined the action
|
24
|
+
type in particular does not have any action defined then the action
|
26
25
|
controller will not be displayed. When an action is selected, it will
|
27
26
|
be displayed below, in the area called action loader.
|
28
27
|
|
29
|
-
Actions can also be opened in their own page,
|
30
|
-
|
28
|
+
Actions can also be opened in their own page, clicking the
|
29
|
+
middle-button like any link. These pages are like reports but with no
|
30
|
+
action controller or side-bar
|
31
31
|
|
32
32
|
.images
|
33
33
|
%dl.tabs.active.show
|
@@ -46,24 +46,23 @@
|
|
46
46
|
:markdown
|
47
47
|
|
48
48
|
The top-bar provides access to several functionalities. Clicking on the
|
49
|
-
title of the application will link to its front-page.
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
the reload button in the browser as well. I'm planning to fix this.
|
49
|
+
title of the application will link to its front-page. Next to it is
|
50
|
+
the reload-button, which is used to force the server to recalculate a
|
51
|
+
report, otherwise the report will be taken from a cache. This is
|
52
|
+
useful when a report has given an error or when when it was updated
|
53
|
+
somehow. *Note:* After a reload of the report, the browser might still
|
54
|
+
try to get the file from its own cache, so you might need to use the
|
55
|
+
reload button in the browser as well; I'm planning to fix this.
|
57
56
|
|
58
57
|
Next is the `favourites` controls, which we will discuss shortly. After
|
59
58
|
that there might be a search box, if the server was started with that
|
60
59
|
functionality. This search box can be configured to identify any type
|
61
60
|
of entity, but generally it is only genes.
|
62
61
|
|
63
|
-
The final component of the top-bar, which I label "
|
64
|
-
controls, which allows to login or logout, and the job bookmarks,
|
65
|
-
|
66
|
-
latter.
|
62
|
+
The final component of the top-bar, which I label "User", has the user
|
63
|
+
controls, which allows to login or logout, and the job bookmarks, where
|
64
|
+
bookmarked actions are kept. Also this help page. Will discuss
|
65
|
+
bookmarking actions latter.
|
67
66
|
|
68
67
|
.images
|
69
68
|
%dl.tabs.active.show
|
@@ -101,7 +100,6 @@
|
|
101
100
|
it. *Note:* New lists are not made favourite be default, you still need to
|
102
101
|
click on the star once the report is shown.
|
103
102
|
|
104
|
-
|
105
103
|
.images
|
106
104
|
%dl.tabs.active.show
|
107
105
|
%dt.next.show Snapshot
|
@@ -112,7 +110,6 @@
|
|
112
110
|
%dd
|
113
111
|
%img(src="/img/UI/favourites_wire.png")
|
114
112
|
|
115
|
-
|
116
113
|
%dt.next Actions
|
117
114
|
%dd
|
118
115
|
.description
|
@@ -128,9 +125,9 @@
|
|
128
125
|
action report consists of the content of the action, and optionally,
|
129
126
|
parameter controls and an action description. When the action is loaded
|
130
127
|
inside a report the parameter controls and description are hidden, but
|
131
|
-
they can be shown using the action control buttons in the top left
|
132
|
-
Actions can also be opened in their own report
|
133
|
-
button.
|
128
|
+
they can be shown using the action control buttons in the top left of
|
129
|
+
the action controller. Actions can also be opened in their own report
|
130
|
+
by right/middle clicking on its button.
|
134
131
|
|
135
132
|
As with all reports, they are executed the first time they are
|
136
133
|
requested and the result is cached for further access. The action
|
@@ -145,14 +142,15 @@
|
|
145
142
|
For instance the "Enrichment" action of gene lists performs an
|
146
143
|
over-representation based analysis of functional classes. The
|
147
144
|
functional classes include several pathway databases, protein domains,
|
148
|
-
gene ages, etc. If we where
|
145
|
+
gene ages, etc. If we where interested primarily in performing enrichment
|
149
146
|
analysis using GO biological process terms, we can use the paperclip
|
150
|
-
button to set that configuration of parameters as default so that it
|
147
|
+
button to set that configuration of parameters as default, so that it
|
151
148
|
always uses it initially.
|
152
149
|
|
153
150
|
Some actions may require a significant amount of time to compute. The
|
154
151
|
action controller tries to reload the action periodically until it is
|
155
|
-
completed
|
152
|
+
completed (after a while it will stop insisting to not overload the
|
153
|
+
server). Instead of having to wait on that page for it to finish, the
|
156
154
|
user can click on the bookmark button, which will place a link in the
|
157
155
|
"jobs" tab on the "Extra" menu of the top-bar, and come back to it
|
158
156
|
later.
|
@@ -189,19 +187,23 @@
|
|
189
187
|
table through the `filter` button. The filters are defined per-column,
|
190
188
|
and can contain exact strings, regular expressions like
|
191
189
|
`/(COMPLETE|PARTIAL) RESPONSE/i`, statements such as `> \< ==` or `!=`.
|
192
|
-
And
|
190
|
+
And columns containing entities they can be prefixed with the term
|
193
191
|
`name:` to force the filtering to work over the human readible text of
|
194
192
|
the entities e.g. `name:/SF3B\d+/` for a column containing 'Ensembl
|
195
193
|
Gene ID'.
|
196
194
|
|
197
|
-
When a column contains entities, these are usualy listed in the table
|
198
|
-
some identifier like 'Ensembl Gene ID' for genes or 'GO Term
|
199
|
-
displaying the table, it automatically substitutes
|
200
|
-
links to their corresponding reports, and lists
|
201
|
-
the `column` button allows the user to
|
202
|
-
|
203
|
-
|
204
|
-
|
195
|
+
When a column contains entities, these are usualy listed in the table
|
196
|
+
using some identifier like 'Ensembl Gene ID' for genes or 'GO Term
|
197
|
+
IDs', etc. When displaying the table, it automatically substitutes
|
198
|
+
these identifiers with links to their corresponding reports, and lists
|
199
|
+
them by name. Additionally the `column` button allows the user to
|
200
|
+
report the list of entities of any column or, if the first column is
|
201
|
+
itselve an entity, it allows the user to report the `map` between the
|
202
|
+
entities in this column and the values of any other column. Maps are
|
203
|
+
generally used as inputs to actions and tools, but may have actions as
|
204
|
+
well; gene maps have an action that performs a rank-based enrichment
|
205
|
+
analysis (provided the Enrichment workflow is loaded in the
|
206
|
+
server).
|
205
207
|
|
206
208
|
The content of the table can be downloaded in two forms, as TSV files,
|
207
209
|
which is the original source of the table, or as Excel files. When
|
@@ -224,16 +226,16 @@
|
|
224
226
|
visualization for different types of data. For instance: the `Graph`
|
225
227
|
workflow implements the `cytoscape` tool, which is used to display
|
226
228
|
different kinds of entities connected through databases or analitical
|
227
|
-
results
|
228
|
-
|
229
|
+
results (defined as `knowledge_bases`, but that is a subject for
|
230
|
+
another discussion); the `Structure` `jmol` tool displays mutations in
|
231
|
+
the secondary and tertiary structures and complexes; and the `D3Js`
|
229
232
|
workflow that implements a tool to display `d3js` interactive SVG
|
230
|
-
figures. Alternative R is used through a native interface in Rbbt to
|
233
|
+
figures. Alternative R is used through a native interface in Rbbt to
|
231
234
|
display plots using `ggplot2`.
|
232
235
|
|
233
236
|
These tools are used by different reports and actions. The `Graph`
|
234
237
|
workflow for instance redefines the template for `Gene` lists to
|
235
238
|
include a cytoscape plot to the description section of the report.
|
236
|
-
|
237
239
|
|
238
240
|
.images
|
239
241
|
%dl.tabs.active.show
|
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.2.
|
4
|
+
version: 1.2.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|