Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate oncoprintjs #4252

Closed
wants to merge 322 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
aa64ba0
delete legacy code
Jun 23, 2015
87c8121
First pass at dragging. A lot of technical debt and optimization left
Jun 23, 2015
d63adb4
fixing bugs
Jun 24, 2015
d3f6a06
cleaning up dragging and adding test data
Jun 24, 2015
0665eca
first commit, adding hongxins toolbar
Jun 24, 2015
6c47c34
display toolbar (bad layout still)
Jun 25, 2015
7e85a30
some performance and other tweaks
Jun 25, 2015
22fb757
new folder for production code
Jun 29, 2015
397481a
change from npm module exports to closure return pattern
Jun 29, 2015
2f342e9
merging changes from trying it in production
Jun 29, 2015
e95602f
update test page for new situation
Jun 29, 2015
b83ebf2
adding mrna to genetic alteration rule, and starting thinking about f…
Jun 29, 2015
e8ea217
fast zooming via svg viewboxes
Jun 29, 2015
1511c85
RPPA triangle and proper zoom scaling
Jun 29, 2015
b113d1e
Cluttered commit...CSS, track groups, GA ruleset impl
Jun 30, 2015
8d9700b
clean up a lot, move stuff into another file
Jul 2, 2015
3f7a5f4
taking out useless clipping...browser clips fine apparently. Also add…
Jul 2, 2015
52510f7
speeding up dragging a bit
Jul 2, 2015
8d9e09e
default genetic alteration config and sorting
Jul 6, 2015
689d4bc
small fix for using default genetic alteration params
Jul 6, 2015
16dbff7
legend table instead of svg
Jul 6, 2015
18e3434
small bug fix
Jul 6, 2015
cb57de7
html for label area instead of svg
Jul 7, 2015
4e6e064
dragging in html container, and styling bug fixes
Jul 7, 2015
9d4a86f
update genetic_alteration_config and _comparator
Jul 7, 2015
17c080b
beginning of toolbar and adding default sort to genetic alteration ru…
Jul 7, 2015
5557906
positioning optimization
Jul 7, 2015
eedee5b
turn off transition when its too slow
Jul 7, 2015
6d202c3
smart transitioning - only animate cells in view
Jul 7, 2015
c189816
fix random swapping issue
Jul 8, 2015
0adc586
changes toward fixing smart transitions...currently no transitions
Jul 9, 2015
177631d
move cursor on labels
Jul 9, 2015
6cf3d82
infer data range for bar chart and gradient rules
Jul 9, 2015
4fa4559
tooltip style changes
Jul 9, 2015
b9ea6c0
new genetic alteration specification system
Jul 9, 2015
c8a2d6d
specify zindex in genetic alteration rule spec
Jul 9, 2015
653bb69
add genetic alteration label back into default config
Jul 10, 2015
06509e3
render legend when track data set, which jives with rule setting infe…
Jul 10, 2015
5a85d87
sort on move
Jul 10, 2015
756a83f
add default sort for gradient and bar chart, and add different sortin…
Jul 13, 2015
575f997
more advanced sorting functionality
Jul 13, 2015
3ec2bb1
more sort controls
Jul 13, 2015
9a04fad
small bug fix
Jul 13, 2015
78d5f5a
draw cells when you set rule set
Jul 14, 2015
ee75e24
bug fixes
Jul 14, 2015
ed471a2
dealing with nans in numerical data
Jul 14, 2015
e132592
bringing transition back, just left
Jul 14, 2015
db63955
trigger finished rendering event
Jul 14, 2015
c270492
show/hide legends
Jul 14, 2015
e407f07
hide unused rules from legend
Jul 14, 2015
17de46b
CSS3 transitions
Jul 15, 2015
b3b7bed
take out transitions, add back clipping
Jul 15, 2015
818ba9c
experimental clipping and positioning...
Jul 15, 2015
a47413f
fix sorting a bit
Jul 16, 2015
a8b41d7
clipping/positioning optimizations
Jul 16, 2015
882a9f0
change clipping interval width, add more auto-fill colors, and delete…
Jul 16, 2015
9719c80
fixing up available d3 colors - excluding grayscales
Jul 16, 2015
9e29cd5
small usability changes - padding on the top so you can drag off more…
Jul 16, 2015
6e23e1a
fix zooming then adding track issue
Jul 16, 2015
e69d22a
abbreviate long track names and add tooltips
Jul 16, 2015
710d6fe
beginning of hiding unaltered cases
Jul 17, 2015
4dc087e
more functionality towards hiding/showing ids
Jul 20, 2015
ebe815c
more stuff related to visible ids
Jul 20, 2015
a2dd1d0
fixing track initialization
Jul 20, 2015
39d63e0
expose setIdOrder
Jul 20, 2015
2dd5c0a
stateful sort config
Jul 20, 2015
4f7ee43
fix label qtip on overflow
Jul 20, 2015
b98542a
remove track, toggle track sort direction buttons
Jul 20, 2015
c258b75
additions towards patient-sample switching and svg downloading
Jul 21, 2015
0a6a6be
adding hover events
Jul 22, 2015
278672d
trying to get rid of aliasing
Jul 22, 2015
1b3b59c
get rid of antialiasing effort, and style track buttons
Jul 22, 2015
bcfd173
re-render legend on track remove
Jul 22, 2015
dbd865d
fix zoom aliasing
Jul 22, 2015
5dca11b
clear data function
Jul 22, 2015
dd7ee32
clear data function
Jul 22, 2015
528041f
make patient data default and add ability to change track tooltip
Jul 22, 2015
aedf565
attaching data to g and trying to reuse gs
Jul 23, 2015
58a207a
some speed optimizations
Jul 23, 2015
0fd8b90
fix cell area height edge case
Jul 23, 2015
25078db
more speed optimizations
Jul 23, 2015
7eb61c7
force NAs to be sorted to the end in either direction
Jul 27, 2015
787e4fa
reduce number of digits in gradient and bar chart legends
Jul 27, 2015
b410bd9
by default dont distinguish mutation order
Jul 27, 2015
33b8cf2
fix qtip bug
Jul 27, 2015
c555d1d
mouseovers and qtips handled by cell div and mousemove handler
Jul 28, 2015
83f26b4
some changes to highlighting and qtip
Jul 28, 2015
0bb7100
stop event propagation
Jul 28, 2015
317e544
fix qtip issue by renaming event
Jul 28, 2015
ed8d4aa
fix tooltip problem, remove cell highlight, add column highlight line
Jul 28, 2015
c1879cc
comment out column highlight
Jul 28, 2015
598a038
trigger mousemove event on mouseout to hide tooltip, and take out leg…
Jul 28, 2015
751fcfa
fix problem where hiding cases didnt work
Jul 28, 2015
72afffd
toSVG implemented
Jul 29, 2015
4cc16d0
change ruleset name constants so you can just use strings
Jul 29, 2015
5babc1c
mouseout handler
Jul 30, 2015
e73eca3
fix space issue
Jul 30, 2015
7416f5b
small adjustments
Jul 30, 2015
fd1ef72
some styling changes
Jul 30, 2015
ab203ec
small change to toSVG
Jul 30, 2015
0be22c9
use full cell width for legend
Aug 3, 2015
8073b4b
reduce default track group separation
Aug 4, 2015
14050c6
nested rules (for more than one svg element in a single rule) and app…
Aug 4, 2015
7bcbbf1
change qtip messages and add border to cell qtips
Aug 4, 2015
37091d5
quantize zoom
Aug 4, 2015
3f015c7
small adjustment to padding zooming, and small adjustments to mutatio…
Aug 4, 2015
88f451e
some optimizations relating to sorting, computing altered data percen…
Aug 5, 2015
92cdb26
changes from implementation
Aug 27, 2015
fa1f8d2
deleting some legacy and development stuff from repository, and adjus…
Sep 15, 2015
36931ef
Deleting more legacy stuff
Sep 15, 2015
825c3b9
webgl implementation
Mar 3, 2016
24a251c
update README
Mar 3, 2016
cd8dcd2
update naming
Mar 3, 2016
2fd3aa9
update README
Mar 3, 2016
b540b14
remove private files
Mar 4, 2016
fbaca6e
Update from main project
Nov 3, 2016
e6c4e8e
update code
Jun 20, 2017
55df734
Minimum example of Oncoprint + README (#25)
pambot Aug 9, 2017
bcbb77d
Add travis.yml
inodb Aug 10, 2017
1c9b40a
Add npm upload
inodb Aug 10, 2017
3fab57c
Add Travis badge
inodb Aug 10, 2017
61edf6f
upload dist folder to npm
inodb Aug 10, 2017
c75dd1a
Merge pull request #29 from pambot/node-package
adamabeshouse Aug 25, 2017
e82e3da
v1.0.3
inodb Aug 25, 2017
258458e
fill in version based on git tag
inodb Aug 25, 2017
77bbc4d
Merge branch 'rebase-attempt'
Sep 14, 2017
794b497
Merge pull request #30 from cBioPortal/testing-framework
adamabeshouse Sep 18, 2017
c320291
Merge pull request #31 from cBioPortal/typing
adamabeshouse Sep 18, 2017
dbfee12
Improve typing
Sep 19, 2017
3a70577
Another attempt to make it work as node package
Sep 19, 2017
efd6c8f
Another attempt vv
Sep 19, 2017
5770c9d
Remove src/ from npmignore
Sep 20, 2017
64c63d4
Merge pull request #32 from cBioPortal/update-oncoprint
adamabeshouse Nov 1, 2017
d850061
Webpack and webworkers and clustering
Nov 3, 2017
ea63c20
Merge pull request #37 from cBioPortal/on-sort-direction-change
adamabeshouse Dec 6, 2017
aa5db78
Merge pull request #38 from cBioPortal/bar-legend-color-bg
adamabeshouse Dec 7, 2017
a118d3b
Merge pull request #39 from cBioPortal/bugs
adamabeshouse Dec 13, 2017
8d8f4eb
Merge pull request #40 from cBioPortal/add-classes
adamabeshouse Dec 14, 2017
d42e0c5
Merge pull request #41 from cBioPortal/pending-resize-and-org
adamabeshouse Dec 14, 2017
80b1fbf
Merge pull request #42 from cBioPortal/track-dropdown-active
adamabeshouse Dec 15, 2017
b34f8db
Merge pull request #43 from cBioPortal/legend-misplacement
adamabeshouse Dec 15, 2017
df08294
Merge pull request #44 from cBioPortal/cluster-NA-to-end
adamabeshouse Dec 19, 2017
d47dfa7
Merge pull request #45 from cBioPortal/clustering-fix
adamabeshouse Dec 19, 2017
447b629
Merge pull request #46 from cBioPortal/to-data-url
adamabeshouse Dec 21, 2017
0063b23
Merge pull request #47 from cBioPortal/tooltip-br
adamabeshouse Jan 8, 2018
54a2379
Merge pull request #48 from cBioPortal/legend-order
adamabeshouse Jan 11, 2018
8e80788
Merge pull request #49 from cBioPortal/nullify-sort-dir-clustered
adamabeshouse Jan 17, 2018
46e5d91
Update README.md to reflect changes to build process (webpack)
adamabeshouse Jan 19, 2018
ad3b7a1
Merge pull request #53 from cBioPortal/webgl-fail-gracefully
adamabeshouse Jan 26, 2018
8454787
Merge pull request #54 from cBioPortal/ruleset-fix
adamabeshouse Jan 29, 2018
292ee04
Merge pull request #34 from thehyve/geneset_oncoprint_nov2017
adamabeshouse Jan 30, 2018
712ea08
Add Fedde to contributors
adamabeshouse Feb 16, 2018
a23718f
Merge pull request #56 from cBioPortal/legend-order
adamabeshouse Feb 16, 2018
a412c91
Merge pull request #57 from cBioPortal/legend-order
adamabeshouse Feb 16, 2018
d147456
Merge pull request #58 from cBioPortal/tooltip-class
adamabeshouse Feb 16, 2018
843e595
Merge pull request #59 from thehyve/geneset_fixes
adamabeshouse Feb 20, 2018
f472627
Merge pull request #60 from thehyve/expanded_clustering
adamabeshouse Mar 8, 2018
fbbdf6b
Merge pull request #61 from cBioPortal/rendered-evt
adamabeshouse Mar 12, 2018
0b2c898
Merge pull request #64 from cBioPortal/truncated-legend
adamabeshouse Mar 19, 2018
379d44c
Merge pull request #65 from cBioPortal/pending-rao-callback
adamabeshouse Mar 19, 2018
98c12f1
Merge pull request #62 from thehyve/germline-mutation-20180314
adamabeshouse Mar 22, 2018
f116c91
Merge pull request #67 from cBioPortal/radix-sort
adamabeshouse Apr 3, 2018
450a9c5
Merge pull request #68 from cBioPortal/radix-sort
adamabeshouse Apr 4, 2018
249079c
Merge pull request #69 from cBioPortal/string-bucket-sort
adamabeshouse Apr 4, 2018
7a26289
Merge pull request #70 from cBioPortal/tooltip-hiding
adamabeshouse Apr 5, 2018
839b41e
Merge pull request #71 from cBioPortal/fix-download-baseLegendColor
adamabeshouse Apr 6, 2018
befbd76
Fix bug with gradient svg rects
Apr 6, 2018
36268d5
Update README.md
adamabeshouse Apr 12, 2018
029e526
Merge pull request #72 from cBioPortal/ns-generality
adamabeshouse Apr 23, 2018
992b9c1
Merge pull request #73 from thehyve/expose-noexpand
adamabeshouse May 25, 2018
833881d
Merge pull request #74 from cBioPortal/legend-adjustment
adamabeshouse Jul 30, 2018
746af23
dummy commit to try another release
Jul 30, 2018
6c0ba91
update npm api key on travis
inodb Jul 31, 2018
c16dc66
Merge pull request #75 from cBioPortal/gradient
adamabeshouse Aug 6, 2018
08fb184
dummy commit to allow new release
adamabeshouse Aug 6, 2018
5ae1bb8
Merge pull request #76 from cBioPortal/images
adamabeshouse Aug 28, 2018
2787615
Merge pull request #77 from cBioPortal/improve-classes
adamabeshouse Oct 12, 2018
f1fac7f
Merge pull request #78 from cBioPortal/categoryToColor
adamabeshouse Oct 25, 2018
9e1b820
Merge pull request #79 from cBioPortal/dispose-webgl
adamabeshouse Oct 25, 2018
e8ef2ec
Merge pull request #80 from cBioPortal/destroy
adamabeshouse Oct 26, 2018
0465f7f
Merge pull request #81 from cBioPortal/custom-options
adamabeshouse Nov 1, 2018
c2df207
Fix bug in typings
Nov 2, 2018
fa0bad9
Merge pull request #82 from cBioPortal/info-tt
adamabeshouse Nov 8, 2018
c36cbe0
Merge pull request #83 from cBioPortal/fix-label-tts
adamabeshouse Nov 15, 2018
d103909
Merge pull request #84 from cBioPortal/sublabel
adamabeshouse Dec 3, 2018
87ec626
Merge pull request #85 from cBioPortal/fix-vuln
adamabeshouse Dec 4, 2018
96c224a
Merge pull request #86 from cBioPortal/fix-vuln
adamabeshouse Dec 4, 2018
343c488
Merge pull request #87 from cBioPortal/ensure-webgl
adamabeshouse Dec 12, 2018
2306474
Merge pull request #88 from cBioPortal/legend-fix
adamabeshouse Dec 18, 2018
11a08e6
Merge pull request #89 from cBioPortal/custom-options-improvements
adamabeshouse Dec 19, 2018
69377fe
Merge pull request #91 from thehyve/remove_dead_code
adamabeshouse Jan 16, 2019
25fdecf
Merge pull request #90 from thehyve/gradient_continuous_legend
adamabeshouse Feb 1, 2019
207531c
Merge pull request #92 from cBioPortal/multi-tt
adamabeshouse Feb 6, 2019
24feeab
Merge pull request #93 from cBioPortal/group
adamabeshouse Mar 22, 2019
e2f2e72
Merge pull request #95 from cBioPortal/disable-mouseover
adamabeshouse May 24, 2019
0df7e8c
Remove version from package.json
May 24, 2019
6656f1e
Merge pull request #96 from cBioPortal/jesus
adamabeshouse May 25, 2019
4bbef07
Merge pull request #97 from cBioPortal/name-divs
adamabeshouse May 29, 2019
36d5576
Merge pull request #98 from cBioPortal/pieterlukasse-patch-1
adamabeshouse Jun 24, 2019
3e11ecf
Merge pull request #99 from cBioPortal/tt-overflow
adamabeshouse Jul 18, 2019
7cc83c9
Merge pull request #100 from inodb/add-dummy-version
adamabeshouse Jul 19, 2019
1b15432
Merge pull request #101 from cBioPortal/tt-fix
adamabeshouse Jul 23, 2019
f0ee400
Merge pull request #102 from cBioPortal/changes-for-pv
adamabeshouse Aug 13, 2019
a7ddb87
Merge pull request #103 from cBioPortal/indent
adamabeshouse Aug 13, 2019
105f8bd
Merge pull request #104 from cBioPortal/label-circles
adamabeshouse Aug 19, 2019
5f86389
Update broken unit tests
Aug 19, 2019
b3d8965
Merge pull request #105 from cBioPortal/more-changes
adamabeshouse Aug 20, 2019
d4fff07
Add ability to set oncoprint width dynamically
Aug 20, 2019
1baa529
Merge pull request #106 from cBioPortal/column-labels
adamabeshouse Aug 21, 2019
47f0e95
Correctly type last argument of constructor as optional
Aug 21, 2019
1156465
Allow setting init cell padding
Aug 21, 2019
6e5a12c
Column labels now align baseline to middle instead of bottom
Aug 21, 2019
63436bd
Merge pull request #107 from cBioPortal/more-changes
adamabeshouse Sep 5, 2019
3989277
Merge pull request #108 from cBioPortal/fix-vert-scroll
adamabeshouse Sep 5, 2019
ba6899f
Merge pull request #109 from cBioPortal/col-label-highlight
adamabeshouse Sep 11, 2019
c3efce9
Merge pull request #110 from cBioPortal/highlight-fixes
adamabeshouse Sep 12, 2019
6c81432
Merge pull request #111 from cBioPortal/typescript
adamabeshouse Oct 14, 2019
cba2909
Update README.md to not give misleading example
adamabeshouse Oct 14, 2019
8b86f30
Merge pull request #112 from cBioPortal/colored-circle-column-labels
adamabeshouse Oct 29, 2019
150b571
Merge pull request #113 from cBioPortal/clear-old-code
adamabeshouse Oct 29, 2019
8398912
Merge pull request #114 from cBioPortal/highlight-track
adamabeshouse Oct 30, 2019
eb2091e
Fix bug where highlights would lag behind when scrolling
Oct 30, 2019
54832be
Merge pull request #115 from cBioPortal/highlight-bug
adamabeshouse Oct 30, 2019
3152cc2
Merge pull request #116 from cBioPortal/fix-height-issues
adamabeshouse Oct 30, 2019
392b7f5
Merge pull request #117 from cBioPortal/hide-labels
adamabeshouse Nov 1, 2019
1448ee4
Merge pull request #118 from cBioPortal/track-group-header
adamabeshouse Nov 4, 2019
105aebc
Merge pull request #119 from cBioPortal/allow-sorting-clustered
adamabeshouse Nov 5, 2019
8d3d449
Merge pull request #120 from cBioPortal/dropdown-issues
adamabeshouse Nov 5, 2019
c278fdc
Merge pull request #121 from cBioPortal/headers-class
adamabeshouse Nov 7, 2019
f446d8b
Fix error with mouse events caused by column label canvas
Nov 11, 2019
4d41a88
Merge pull request #123 from cBioPortal/custom-na-shapes
adamabeshouse Nov 22, 2019
803d5c9
Merge pull request #124 from cBioPortal/gaps
adamabeshouse Dec 11, 2019
af25b1f
Merge pull request #125 from cBioPortal/fix-zoom-to-fit
adamabeshouse Dec 11, 2019
4b8ee4c
Fix bug with gap offset calculation due to faulty computation of numb…
Dec 12, 2019
08fbe87
Merge pull request #126 from cBioPortal/on-remove
adamabeshouse Jan 3, 2020
702f5c6
Merge pull request #122 from cBioPortal/number-input
adamabeshouse Jan 9, 2020
6610870
Merge pull request #127 from cBioPortal/custom-max-height
adamabeshouse Jan 14, 2020
856fffc
Merge pull request #128 from cBioPortal/performance
adamabeshouse Jan 14, 2020
58d4eb4
Merge pull request #129 from cBioPortal/fix-ztf
adamabeshouse Jan 16, 2020
93fd60a
Merge pull request #130 from cBioPortal/minimap-placement
adamabeshouse Jan 22, 2020
ffc870b
Merge pull request #131 from cBioPortal/inf-fix
adamabeshouse Mar 19, 2020
e2ea919
Merge pull request #132 from cBioPortal/no-prepend
adamabeshouse Mar 19, 2020
31d2c8b
Merge pull request #133 from cBioPortal/dependabot/npm_and_yarn/acorn…
adamabeshouse Apr 6, 2020
c76de53
Merge pull request #134 from cBioPortal/dependabot/npm_and_yarn/jquer…
adamabeshouse Apr 30, 2020
aca7ea3
Merge pull request #136 from cBioPortal/dependabot/npm_and_yarn/lodas…
adamabeshouse Jul 18, 2020
a5d0a9c
Merge pull request #135 from cBioPortal/fix-bug
adamabeshouse Aug 3, 2020
32785b2
Merge pull request #137 from cBioPortal/dependabot/npm_and_yarn/ellip…
adamabeshouse Aug 3, 2020
2065dad
configure build with rollup, fix TS errors
onursumer May 10, 2022
5c443e9
fix svg files
onursumer May 17, 2022
e67e2e3
fix tests
onursumer May 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
"@babel/preset-env": "^7.4.4",
"@babel/preset-react": "^7.0.0",
"@rollup/plugin-commonjs": "^11.0.0",
"@rollup/plugin-json": "^4.0.2",
"@rollup/plugin-node-resolve": "^6.0.0",
"@rollup/plugin-url": "^4.0.0",
"@svgr/rollup": "^4.2.0",
"@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-image": "^2.1.1",
"@types/chai": "3.5.2",
"@types/chai-enzyme": "^0.6.2",
"@types/chart.js": "^2.4.6",
Expand Down Expand Up @@ -220,7 +219,7 @@
"object-sizeof": "^1.2.0",
"oncokb-styles": "~1.3.0",
"oncokb-ts-api-client": "^1.3.0",
"oncoprintjs": "5.0.4",
"oncoprintjs": "^6.0.0-beta.0",
"pako": "2.0.2",
"parameter-validator": "^1.0.2",
"path-browserify": "^1.0.1",
Expand Down Expand Up @@ -293,11 +292,12 @@
"reselect": "^2.5.4",
"resolve-url-loader": "^1.6.1",
"responsive-fixed-data-table": "^2.0.0",
"rollup": "^1.32.1",
"rollup-plugin-auto-external": "^2.0.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.27.0",
"rollup": "^2.73.0",
"rollup-plugin-node-externals": "^4.0.0",
"rollup-plugin-postcss": "^2.9.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-typescript2": "^0.31.2",
"rollup-plugin-web-worker-loader": "^1.6.1",
"route-parser": "0.0.5",
"sass": "^1.32.4",
"sass-loader": "10.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/cbioportal-clinical-timeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"autobind-decorator": "^2.1.0",
"cbioportal-frontend-commons": "^0.5.23",
"lodash": "^4.17.11",
"lodash": "^4.17.15",
"react-bootstrap": "^0.31.5",
"react-overlays": "0.7.4",
"typescript": "4.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/cbioportal-frontend-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"cbioportal-utils": "^0.3.16",
"classnames": "^2.2.5",
"jquery": "^3.2.1",
"lodash": "^4.17.11",
"lodash": "^4.17.15",
"measure-text": "0.0.4",
"mobxpromise": "github:cbioportal/mobxpromise#303db72588860bff0a6862a4f07a4e8a3578c94f",
"object-sizeof": "^1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cbioportal-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"buffer": "^6.0.3",
"genome-nexus-ts-api-client": "^1.1.20",
"lodash": "^4.17.11",
"lodash": "^4.17.15",
"oncokb-ts-api-client": "^1.3.0",
"superagent": "^3.8.3",
"typescript": "4.0.3"
Expand Down
1 change: 1 addition & 0 deletions packages/config/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const config: InitialOptionsTsJest = {
'\\.(css|sass|less|scss)$': 'identity-obj-proxy',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/../config/fileMock.js',
'web-worker:*': 'identity-obj-proxy',
},
globals: {
'ts-jest': {
Expand Down
16 changes: 8 additions & 8 deletions packages/config/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import typescript from 'rollup-plugin-typescript2';
import commonjs from '@rollup/plugin-commonjs';
// import external from 'rollup-plugin-peer-deps-external';
import autoExternal from 'rollup-plugin-auto-external';
import externals from 'rollup-plugin-node-externals';
import json from '@rollup/plugin-json';
import postcss from 'rollup-plugin-postcss';
import resolve from '@rollup/plugin-node-resolve';
import sourcemaps from 'rollup-plugin-sourcemaps';
import url from '@rollup/plugin-url';
import image from '@rollup/plugin-image';
import postcssUrl from 'postcss-url';
import svgr from '@svgr/rollup';
import workerLoader from 'rollup-plugin-web-worker-loader';

// common rollup config options for all libraries under packages
export default function getRollupOptions(
input,
mainOutput,
moduleOutput,
styles
styles,
nodeExternalsOptions
) {
return {
input: input,
Expand All @@ -34,7 +34,7 @@ export default function getRollupOptions(
},
],
plugins: [
autoExternal(),
externals(nodeExternalsOptions),
postcss({
autoModules: true,
extract: styles,
Expand All @@ -44,12 +44,12 @@ export default function getRollupOptions(
}),
],
}),
url(),
svgr(),
image(),
typescript({
clean: true,
}),
json(),
workerLoader(),
commonjs(),
resolve(),
sourcemaps(),
Expand Down
165 changes: 165 additions & 0 deletions packages/oncoprintjs/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.


This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

0. Additional Definitions.

As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

1. Exception to Section 3 of the GNU GPL.

You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

2. Conveying Modified Versions.

If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or

b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.

3. Object Code Incorporating Material from Library Header Files.

The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the object code with a copy of the GNU GPL and this license
document.

4. Combined Works.

You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.

b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.

c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.

d) Do one of the following:

0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.

1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.

e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)

5. Combined Libraries.

You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.

b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.

6. Revised Versions of the GNU Lesser General Public License.

The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
39 changes: 39 additions & 0 deletions packages/oncoprintjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[![Build Status](https://travis-ci.org/cBioPortal/oncoprintjs.svg?branch=master)](https://travis-ci.org/cBioPortal/oncoprintjs)
# OncoprintJS
This is the library that generates the Oncoprint visualization in cBioPortal. Essentially, it populates a canvas of a grid of `m` tracks of `n` types, where each element can either be a discrete value represented by a colored glyph on a grey background or a continuous value within a color range. Oncoprint can have many conceivable uses, but in cBioPortal, it is primarily used to visualize tracks of `m` genes and `n` patient samples, where the colored glyphs represent genomic alterations. It is also used to display a heatmap of gene and/or protein expression values for those `m` genes and `n` patient samples.

## Using the Node Module
Oncoprint is on [NPM](https://www.npmjs.com/package/oncoprintjs). To install:

npm install --save oncoprintjs

In order to use it, just `require` it into your script.

const Oncoprint = require('oncoprintjs');

It can also be imported

import Oncoprint from "oncoprintjs";

A full documentation of the API is still pending, but the typescript declarations in `dist/js/oncoprint.d.ts` may be of use.

## Development
### Getting Started
First, clone the repo:

git clone https://github.com/cBioPortal/oncoprintjs.git

Install the necessary NPM packages defined in `package.json` by running:

npm install

Next, build

npm run build

Which will write `dist/oncoprint.bundle.js`, which is a CommonJS module and can be included using `require`, or `import`.

The directory `rules/` contains glyph styling specifications that are specific to the genomic alterations use case of Oncoprint, which you may want to use.

### Changes to Oncoprint
If you make changes to the Oncoprint code base and want to load it into the examples, do not modify `oncoprint.bundle.js`, since all of your code will get overwritten when compiled using `npm run build`. Instead, modify the files in `src/` and then re-run `npm run build`.
2 changes: 2 additions & 0 deletions packages/oncoprintjs/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import config from '../config/jest.config';
export default config;
Loading