Skip to content
This repository was archived by the owner on Jun 26, 2018. It is now read-only.

Commit 54d7607

Browse files
committed
yo phovea:migrate
1 parent a2072b0 commit 54d7607

18 files changed

+869
-163
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
10+
# Change these settings to your own preference
11+
indent_style = space
12+
indent_size = 2
13+
14+
# We recommend you to keep these unchanged
15+
end_of_line = lf
16+
charset = utf-8
17+
trim_trailing_whitespace = true
18+
insert_final_newline = true
19+
20+
[*.md]
21+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
*.less text
2121
*.styl text
2222
*.js text
23+
*.ts text
2324
*.coffee text
2425
*.json text
2526
*.htm text

.gitignore

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
style.css
2-
/*.map
3-
pileup ENSG00000149557.json
4-
pileup ENSG00000150782.json
5-
response_tp53_v3.json
6-
data
1+
/.tscache
2+
/.idea
3+
/build/
4+
/dist/
5+
node_modules/
6+
/src/**/*.js
7+
/tests/**/*.js
8+
*.map
9+
*.css
10+
*.log

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: node_js
2+
3+
node_js:
4+
- 6
5+
6+
before_install:
7+
- export DISPLAY=:99.0
8+
- sh -e /etc/init.d/xvfb start
9+
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
10+
11+
script: npm run dist
12+
13+
deploy:
14+
provider: releases
15+
api_key:
16+
secure: TK9/P34Bi3WuppiDrBCwVcn41yCBwmILaU8hXTBzUPbT7TbeFIwsC6/4CtH85Z+ZrUve4S5pTmWRNf2dQDxWw3uYu7+bJuemV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v7uCgpMAlv2g+qtfBq7/D0rluzx3CCDODclWsx/avUFeFz98P0I573BpSYJFjTYJdF0jLd0Szev4MPqy1UqAqI5Dg49IdCYvxUGWvXdTqeFX5OIijr6WvgpxO6/swOzAa+i0kEV8PmC1Sa72jHoG2rJhvbZqxWLsyvNCtZU76osZuUr+efvAhFWmAKKpuhM19Dzt8xlanITm/r/a1MBoFU2D20DBE4jU/Ji2peuhJkMVv95656mYNa0=
24+
on_success: change
25+
on_failure: change

.yo-rc.json

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"generator-phovea": {
3+
"type": "app",
4+
"name": "vials",
5+
"author": "The Caleydo Team",
6+
"githubAccount": "phovea",
7+
"modules": [
8+
"phovea_d3",
9+
"phovea_core"
10+
],
11+
"extensions": [
12+
{
13+
"type": "datatype",
14+
"id": "caleydo-genome-data-link",
15+
"module": "caleydo-genome-data-link",
16+
"extras": {}
17+
},
18+
{
19+
"type": "vis",
20+
"id": "vials-isoforms",
21+
"module": "vials-isoforms",
22+
"extras": {
23+
"name": "Alternative Splicing - IsoForms",
24+
"size": [
25+
840,
26+
300
27+
],
28+
"filter": "caleydo-genome-data-link"
29+
}
30+
},
31+
{
32+
"type": "vis",
33+
"id": "vials-junctions",
34+
"module": "vials-junctions-v2",
35+
"extras": {
36+
"name": "Alternative Splicing - Junctions",
37+
"size": [
38+
840,
39+
2000
40+
],
41+
"filter": "caleydo-genome-data-link"
42+
}
43+
},
44+
{
45+
"type": "vis",
46+
"id": "vials-reads",
47+
"module": "vials-read-v2",
48+
"extras": {
49+
"name": "Alternative Splicing - Read Abundance",
50+
"size": [
51+
840,
52+
2000
53+
],
54+
"filter": "caleydo-genome-data-link"
55+
}
56+
},
57+
{
58+
"type": "vis",
59+
"id": "vials-axis",
60+
"module": "vials-genome-axis",
61+
"extras": {
62+
"name": "Alternative Splicing - Axis",
63+
"size": [
64+
840,
65+
2000
66+
],
67+
"filter": "caleydo-genome-data-link"
68+
}
69+
},
70+
{
71+
"type": "app",
72+
"id": "vials",
73+
"module": "",
74+
"extras": {
75+
"name": "Vials"
76+
}
77+
}
78+
],
79+
"sextensions": [],
80+
"libraries": [
81+
"d3",
82+
"bootstrap",
83+
"font-awesome",
84+
"jquery"
85+
],
86+
"unknown": {
87+
"requirements": [],
88+
"debianPackages": [],
89+
"redhatPackages": []
90+
},
91+
"app": "",
92+
"entries": {
93+
"app": "./src/index.ts"
94+
},
95+
"libraryAliases": {
96+
"d3": "d3/d3"
97+
},
98+
"libraryExternals": [
99+
"d3",
100+
"bootstrap",
101+
"bootstrap-sass",
102+
"font-awesome",
103+
"jquery",
104+
"d3"
105+
],
106+
"ignores": [],
107+
"today": "Tue, 08 Nov 2016 12:13:12 GMT"
108+
}
109+
}

LICENSE

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
1-
Copyright (c) 2014, The Caleydo Team
1+
Copyright (c) 2016, The Caleydo Team
22
All rights reserved.
33

4-
Redistribution and use in source and binary forms, with or without
5-
modification, are permitted provided that the following conditions are met:
4+
Redistribution and use in source and binary forms, with or without modification,
5+
are permitted provided that the following conditions are met:
66

7-
* Redistributions of source code must retain the above copyright notice, this
8-
list of conditions and the following disclaimer.
7+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
98

10-
* Redistributions in binary form must reproduce the above copyright notice,
11-
this list of conditions and the following disclaimer in the documentation
12-
and/or other materials provided with the distribution.
9+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1310

14-
* Neither the name of the {organization} nor the names of its
15-
contributors may be used to endorse or promote products derived from
16-
this software without specific prior written permission.
17-
18-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
11+
Neither the name of the Caleydo Software nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
2812

13+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
14+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
17+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 26 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Caleydo Vials ![Caleydo Web Application](https://img.shields.io/badge/Caleydo%20Web-Application-1BA64E.svg)
2-
===================
1+
vials [![Phovea][phovea-image]][phovea-url] [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url]
2+
=====================
33

44
Vials visualizes alternative splicing based on mRNAseq data. You can try out vials at http://vials.io/.
55

@@ -8,55 +8,39 @@ A [demonstration](http://playground.caleydo.org/vials/) is available in the Cale
88
Installation
99
------------
1010

11-
*Note:* We are currently working on a Docker based build ot simplify the deployment process. In the meanwhile create the development environment as described in following.
12-
13-
[Set up a virtual machine using Vagrant](http://www.caleydo.org/documentation/vagrant/) and run these commands inside the virtual machine:
14-
15-
```bash
16-
./manage.sh clone Caleydo/vials
17-
./manage.sh clone Caleydo/vials_server
18-
./manage.sh resolve
19-
```
20-
21-
Within vagrant create the data structure for the demo application:
22-
23-
- `mkdir _data`
24-
- `cd _data`
25-
- `mkdir vials_projects`
26-
- `cd vials_projects`
27-
- download & unzip bodymap data: https://www.dropbox.com/s/xrbs250tjafjvpd/bodymap.vials_project.zip?dl=0
28-
- `cd ..`
29-
- download & unzip ref_genomes: https://www.dropbox.com/s/zoqnihdrhony4bh/reference_genomes.zip?dl=0
30-
- resulting folder structure (excerpt):
31-
3211
```
33-
/vagrant (or ‘caleydo_web_container’)
34-
_data
35-
reference_genomes
36-
hg19_broad
37-
vials_projects
38-
bodymap.vials_project
39-
plugins
40-
vials
41-
vials_server
42-
… (many others)
43-
….
12+
git clone https://github.com/phovea/vials.git
13+
cd vials
14+
npm install
4415
```
4516

46-
Start server:
47-
- `cd /vagrant`
48-
- `./manage server`
17+
Testing
18+
-------
4919

50-
Access it using your web browser: http://localhost:9000/vials/
20+
```
21+
npm run test
22+
```
5123

24+
Building
25+
--------
5226

53-
Contact
54-
------------
27+
```
28+
npm run build
29+
```
5530

56-
Get in touch with us: @HendrikStrobelt or @sgratzl .
5731

5832

5933
***
6034

6135
<a href="https://caleydo.org"><img src="http://caleydo.org/assets/images/logos/caleydo.svg" align="left" width="200px" hspace="10" vspace="6"></a>
62-
This repository is part of **[Caleydo Web](http://caleydo.org/)**, a platform for developing web-based visualization applications. For tutorials, API docs, and more information about the build and deployment process, see the [documentation page](http://caleydo.org/documentation/).
36+
This repository is part of **[Phovea](http://phovea.caleydo.org/)**, a platform for developing web-based visualization applications. For tutorials, API docs, and more information about the build and deployment process, see the [documentation page](http://caleydo.org/documentation/).
37+
38+
39+
[phovea-image]: https://img.shields.io/badge/Phovea-Application-1BA64E.svg
40+
[phovea-url]: https://phovea.caleydo.org
41+
[npm-image]: https://badge.fury.io/js/vials.svg
42+
[npm-url]: https://npmjs.org/package/vials
43+
[travis-image]: https://travis-ci.org/phovea/vials.svg?branch=master
44+
[travis-url]: https://travis-ci.org/phovea/vials
45+
[daviddm-image]: https://david-dm.org/phovea/vials.svg?theme=shields.io
46+
[daviddm-url]: https://david-dm.org/phovea/vials

karma.conf.js

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/* *****************************************************************************
2+
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
3+
* Copyright (c) The Caleydo Team. All rights reserved.
4+
* Licensed under the new BSD license, available at http://caleydo.org/license
5+
**************************************************************************** */
6+
7+
const webpack = require('./webpack.config.js');
8+
9+
module.exports = (config) => {
10+
config.set({
11+
// frameworks to use
12+
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
13+
frameworks: ['jasmine'],
14+
15+
// list of files / patterns to load in the browser
16+
files: [
17+
'tests.webpack.js' //just load this file
18+
],
19+
20+
// preprocess matching files before serving them to the browser
21+
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
22+
preprocessors: {
23+
// add webpack as preprocessor
24+
'tests.webpack.js': ['webpack', 'sourcemap']
25+
},
26+
27+
webpack: webpack('test'),
28+
29+
failOnEmptyTestSuite: false,
30+
31+
// test results reporter to use
32+
// possible values: 'dots', 'progress'
33+
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
34+
reporters: ['progress'],
35+
36+
// enable / disable watching file and executing tests whenever any file changes
37+
autoWatch: false,
38+
39+
// middleware: ['polyfill'],
40+
// BUG that install everything "karma-polyfill-service": "github:sgratzl/karma-polyfill-service",
41+
polyfill: {
42+
// features: '<feature-set>', // feature set, see polyfill-service docs for details, defaults to `{default: {}}`
43+
// path: '<path>' // path to serve the polyfill script under, defaults to '/polyfill.js'
44+
},
45+
46+
browsers: [process.env.CONTINUOUS_INTEGRATION ? 'Firefox' : 'Chrome'],
47+
48+
// Continuous Integration mode
49+
// if true, Karma captures browsers, runs the tests and exits
50+
singleRun: true
51+
});
52+
};

0 commit comments

Comments
 (0)