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 with its commit history #4266

Merged
merged 343 commits into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
343 commits
Select commit Hold shift + click to select a range
8eb1069
small bug fix
Jul 6, 2015
7e79160
html for label area instead of svg
Jul 7, 2015
24a8ef7
dragging in html container, and styling bug fixes
Jul 7, 2015
f6066f5
update genetic_alteration_config and _comparator
Jul 7, 2015
69d7f72
beginning of toolbar and adding default sort to genetic alteration ru…
Jul 7, 2015
091f8f1
positioning optimization
Jul 7, 2015
ec8c5ea
turn off transition when its too slow
Jul 7, 2015
e5f52ff
smart transitioning - only animate cells in view
Jul 7, 2015
9423929
fix random swapping issue
Jul 8, 2015
3324362
changes toward fixing smart transitions...currently no transitions
Jul 9, 2015
7b97d8a
move cursor on labels
Jul 9, 2015
0985456
infer data range for bar chart and gradient rules
Jul 9, 2015
f8ebd7c
tooltip style changes
Jul 9, 2015
de01a24
new genetic alteration specification system
Jul 9, 2015
00a44b6
specify zindex in genetic alteration rule spec
Jul 9, 2015
f35dafe
add genetic alteration label back into default config
Jul 10, 2015
20b619e
render legend when track data set, which jives with rule setting infe…
Jul 10, 2015
4162c1d
sort on move
Jul 10, 2015
53229ee
add default sort for gradient and bar chart, and add different sortin…
Jul 13, 2015
b7b1ba4
more advanced sorting functionality
Jul 13, 2015
9f26cb1
more sort controls
Jul 13, 2015
49b2679
small bug fix
Jul 13, 2015
47cf2ee
draw cells when you set rule set
Jul 14, 2015
401a807
bug fixes
Jul 14, 2015
250230a
dealing with nans in numerical data
Jul 14, 2015
2842b62
bringing transition back, just left
Jul 14, 2015
0457158
trigger finished rendering event
Jul 14, 2015
10273b0
show/hide legends
Jul 14, 2015
01dd472
hide unused rules from legend
Jul 14, 2015
386cf46
CSS3 transitions
Jul 15, 2015
9643cb1
take out transitions, add back clipping
Jul 15, 2015
974b308
experimental clipping and positioning...
Jul 15, 2015
67de80b
fix sorting a bit
Jul 16, 2015
1b04ffd
clipping/positioning optimizations
Jul 16, 2015
8e70340
change clipping interval width, add more auto-fill colors, and delete…
Jul 16, 2015
7cc2c38
fixing up available d3 colors - excluding grayscales
Jul 16, 2015
8adc5d5
small usability changes - padding on the top so you can drag off more…
Jul 16, 2015
1abea16
fix zooming then adding track issue
Jul 16, 2015
98a2bb8
abbreviate long track names and add tooltips
Jul 16, 2015
f7aa9f9
beginning of hiding unaltered cases
Jul 17, 2015
af863cd
more functionality towards hiding/showing ids
Jul 20, 2015
c47e3ab
more stuff related to visible ids
Jul 20, 2015
488948c
fixing track initialization
Jul 20, 2015
2adaf72
expose setIdOrder
Jul 20, 2015
98b3ee5
stateful sort config
Jul 20, 2015
ba20654
fix label qtip on overflow
Jul 20, 2015
a733515
remove track, toggle track sort direction buttons
Jul 20, 2015
c474d85
additions towards patient-sample switching and svg downloading
Jul 21, 2015
ed5f124
adding hover events
Jul 22, 2015
e4db073
trying to get rid of aliasing
Jul 22, 2015
c7be4d2
get rid of antialiasing effort, and style track buttons
Jul 22, 2015
ece039f
re-render legend on track remove
Jul 22, 2015
71023a6
fix zoom aliasing
Jul 22, 2015
3bc4b1a
clear data function
Jul 22, 2015
94a459a
clear data function
Jul 22, 2015
ecc05e8
make patient data default and add ability to change track tooltip
Jul 22, 2015
1dfff3e
attaching data to g and trying to reuse gs
Jul 23, 2015
42dd1b0
some speed optimizations
Jul 23, 2015
d4cdee5
fix cell area height edge case
Jul 23, 2015
97fc630
more speed optimizations
Jul 23, 2015
304bcfd
force NAs to be sorted to the end in either direction
Jul 27, 2015
9ecf6f5
reduce number of digits in gradient and bar chart legends
Jul 27, 2015
41d4ced
by default dont distinguish mutation order
Jul 27, 2015
6542361
fix qtip bug
Jul 27, 2015
7becc94
mouseovers and qtips handled by cell div and mousemove handler
Jul 28, 2015
1954799
some changes to highlighting and qtip
Jul 28, 2015
8cb2bc4
stop event propagation
Jul 28, 2015
22bbd1d
fix qtip issue by renaming event
Jul 28, 2015
122796d
fix tooltip problem, remove cell highlight, add column highlight line
Jul 28, 2015
953194d
comment out column highlight
Jul 28, 2015
88fdb62
trigger mousemove event on mouseout to hide tooltip, and take out leg…
Jul 28, 2015
d3fb5a9
fix problem where hiding cases didnt work
Jul 28, 2015
39d7036
toSVG implemented
Jul 29, 2015
e3395ea
change ruleset name constants so you can just use strings
Jul 29, 2015
ff6e67c
mouseout handler
Jul 30, 2015
79165b1
fix space issue
Jul 30, 2015
eac3bb4
small adjustments
Jul 30, 2015
52862c8
some styling changes
Jul 30, 2015
674366a
small change to toSVG
Jul 30, 2015
fda29a9
use full cell width for legend
Aug 3, 2015
b529383
reduce default track group separation
Aug 4, 2015
7ce9791
nested rules (for more than one svg element in a single rule) and app…
Aug 4, 2015
d0e1ccc
change qtip messages and add border to cell qtips
Aug 4, 2015
7e366e4
quantize zoom
Aug 4, 2015
1e80590
small adjustment to padding zooming, and small adjustments to mutatio…
Aug 4, 2015
cd70303
some optimizations relating to sorting, computing altered data percen…
Aug 5, 2015
b3f4363
changes from implementation
Aug 27, 2015
c5f5a38
deleting some legacy and development stuff from repository, and adjus…
Sep 15, 2015
0ea3367
Deleting more legacy stuff
Sep 15, 2015
d63c900
webgl implementation
Mar 3, 2016
4d671d7
update README
Mar 3, 2016
7d1903b
update naming
Mar 3, 2016
e8d6e2f
update README
Mar 3, 2016
be06708
remove private files
Mar 4, 2016
259b692
Update from main project
Nov 3, 2016
f6599fc
update code
Jun 20, 2017
4335adf
Minimum example of Oncoprint + README (#25)
pambot Aug 9, 2017
2dc7f41
Add travis.yml
inodb Aug 10, 2017
ffd2003
Add npm upload
inodb Aug 10, 2017
753b3b0
Add Travis badge
inodb Aug 10, 2017
e439193
upload dist folder to npm
inodb Aug 10, 2017
a0b90da
Merge pull request #29 from pambot/node-package
adamabeshouse Aug 25, 2017
68d8a3b
v1.0.3
inodb Aug 25, 2017
051077c
fill in version based on git tag
inodb Aug 25, 2017
fd36d0e
Merge branch 'rebase-attempt'
Sep 14, 2017
10aeb3b
Merge pull request #30 from cBioPortal/testing-framework
adamabeshouse Sep 18, 2017
77cc820
Merge pull request #31 from cBioPortal/typing
adamabeshouse Sep 18, 2017
aa476b5
Improve typing
Sep 19, 2017
a728cdf
Another attempt to make it work as node package
Sep 19, 2017
d660d62
Another attempt vv
Sep 19, 2017
0247b89
Remove src/ from npmignore
Sep 20, 2017
5968809
Merge pull request #32 from cBioPortal/update-oncoprint
adamabeshouse Nov 1, 2017
d320cb2
Webpack and webworkers and clustering
Nov 3, 2017
1f7f687
Merge pull request #37 from cBioPortal/on-sort-direction-change
adamabeshouse Dec 6, 2017
7cabdf4
Merge pull request #38 from cBioPortal/bar-legend-color-bg
adamabeshouse Dec 7, 2017
b0a4d2e
Merge pull request #39 from cBioPortal/bugs
adamabeshouse Dec 13, 2017
35b9f81
Merge pull request #40 from cBioPortal/add-classes
adamabeshouse Dec 14, 2017
f212d72
Merge pull request #41 from cBioPortal/pending-resize-and-org
adamabeshouse Dec 14, 2017
2074b42
Merge pull request #42 from cBioPortal/track-dropdown-active
adamabeshouse Dec 15, 2017
a884e5b
Merge pull request #43 from cBioPortal/legend-misplacement
adamabeshouse Dec 15, 2017
e66d1df
Merge pull request #44 from cBioPortal/cluster-NA-to-end
adamabeshouse Dec 19, 2017
3a870db
Merge pull request #45 from cBioPortal/clustering-fix
adamabeshouse Dec 19, 2017
f27d909
Merge pull request #46 from cBioPortal/to-data-url
adamabeshouse Dec 21, 2017
f64fa2c
Merge pull request #47 from cBioPortal/tooltip-br
adamabeshouse Jan 8, 2018
168ddd1
Merge pull request #48 from cBioPortal/legend-order
adamabeshouse Jan 11, 2018
34030e3
Merge pull request #49 from cBioPortal/nullify-sort-dir-clustered
adamabeshouse Jan 17, 2018
f1b9d3d
Update README.md to reflect changes to build process (webpack)
adamabeshouse Jan 19, 2018
f45797a
Merge pull request #53 from cBioPortal/webgl-fail-gracefully
adamabeshouse Jan 26, 2018
c862924
Merge pull request #54 from cBioPortal/ruleset-fix
adamabeshouse Jan 29, 2018
57425fe
Merge pull request #34 from thehyve/geneset_oncoprint_nov2017
adamabeshouse Jan 30, 2018
77e9ff1
Add Fedde to contributors
adamabeshouse Feb 16, 2018
e450791
Merge pull request #56 from cBioPortal/legend-order
adamabeshouse Feb 16, 2018
0b94a17
Merge pull request #57 from cBioPortal/legend-order
adamabeshouse Feb 16, 2018
f962260
Merge pull request #58 from cBioPortal/tooltip-class
adamabeshouse Feb 16, 2018
601aaff
Merge pull request #59 from thehyve/geneset_fixes
adamabeshouse Feb 20, 2018
b104c53
Merge pull request #60 from thehyve/expanded_clustering
adamabeshouse Mar 8, 2018
50c7b0d
Merge pull request #61 from cBioPortal/rendered-evt
adamabeshouse Mar 12, 2018
351152e
Merge pull request #64 from cBioPortal/truncated-legend
adamabeshouse Mar 19, 2018
9f33291
Merge pull request #65 from cBioPortal/pending-rao-callback
adamabeshouse Mar 19, 2018
9db6af3
Merge pull request #62 from thehyve/germline-mutation-20180314
adamabeshouse Mar 22, 2018
5a270d6
Merge pull request #67 from cBioPortal/radix-sort
adamabeshouse Apr 3, 2018
1148368
Merge pull request #68 from cBioPortal/radix-sort
adamabeshouse Apr 4, 2018
332bdc0
Merge pull request #69 from cBioPortal/string-bucket-sort
adamabeshouse Apr 4, 2018
72ec0fa
Merge pull request #70 from cBioPortal/tooltip-hiding
adamabeshouse Apr 5, 2018
1cf0ab5
Merge pull request #71 from cBioPortal/fix-download-baseLegendColor
adamabeshouse Apr 6, 2018
e710621
Fix bug with gradient svg rects
Apr 6, 2018
8b73b4a
Update README.md
adamabeshouse Apr 12, 2018
1b2d9fb
Merge pull request #72 from cBioPortal/ns-generality
adamabeshouse Apr 23, 2018
3d0dec9
Merge pull request #73 from thehyve/expose-noexpand
adamabeshouse May 25, 2018
a18ce7f
Merge pull request #74 from cBioPortal/legend-adjustment
adamabeshouse Jul 30, 2018
40f91c4
dummy commit to try another release
Jul 30, 2018
1e85629
update npm api key on travis
inodb Jul 31, 2018
7d068ab
Merge pull request #75 from cBioPortal/gradient
adamabeshouse Aug 6, 2018
aff1545
dummy commit to allow new release
adamabeshouse Aug 6, 2018
09ea56b
Merge pull request #76 from cBioPortal/images
adamabeshouse Aug 28, 2018
66c8fe4
Merge pull request #77 from cBioPortal/improve-classes
adamabeshouse Oct 12, 2018
999e593
Merge pull request #78 from cBioPortal/categoryToColor
adamabeshouse Oct 25, 2018
5555967
Merge pull request #79 from cBioPortal/dispose-webgl
adamabeshouse Oct 25, 2018
b52afb5
Merge pull request #80 from cBioPortal/destroy
adamabeshouse Oct 26, 2018
55b2dce
Merge pull request #81 from cBioPortal/custom-options
adamabeshouse Nov 1, 2018
fc41beb
Fix bug in typings
Nov 2, 2018
bceabc2
Merge pull request #82 from cBioPortal/info-tt
adamabeshouse Nov 8, 2018
ec2204b
Merge pull request #83 from cBioPortal/fix-label-tts
adamabeshouse Nov 15, 2018
fdaca10
Merge pull request #84 from cBioPortal/sublabel
adamabeshouse Dec 3, 2018
722d34f
Merge pull request #85 from cBioPortal/fix-vuln
adamabeshouse Dec 4, 2018
f9faa35
Merge pull request #86 from cBioPortal/fix-vuln
adamabeshouse Dec 4, 2018
b0a7443
Merge pull request #87 from cBioPortal/ensure-webgl
adamabeshouse Dec 12, 2018
e923d2d
Merge pull request #88 from cBioPortal/legend-fix
adamabeshouse Dec 18, 2018
d4e3b24
Merge pull request #89 from cBioPortal/custom-options-improvements
adamabeshouse Dec 19, 2018
ec4368d
Merge pull request #91 from thehyve/remove_dead_code
adamabeshouse Jan 16, 2019
5cd666c
Merge pull request #90 from thehyve/gradient_continuous_legend
adamabeshouse Feb 1, 2019
b4655c1
Merge pull request #92 from cBioPortal/multi-tt
adamabeshouse Feb 6, 2019
8caca28
Merge pull request #93 from cBioPortal/group
adamabeshouse Mar 22, 2019
d8e44c1
Merge pull request #95 from cBioPortal/disable-mouseover
adamabeshouse May 24, 2019
ffba6eb
Remove version from package.json
May 24, 2019
ec84945
Merge pull request #96 from cBioPortal/jesus
adamabeshouse May 25, 2019
6d52699
Merge pull request #97 from cBioPortal/name-divs
adamabeshouse May 29, 2019
562f042
Merge pull request #98 from cBioPortal/pieterlukasse-patch-1
adamabeshouse Jun 24, 2019
3bac081
Merge pull request #99 from cBioPortal/tt-overflow
adamabeshouse Jul 18, 2019
dc4546b
Merge pull request #100 from inodb/add-dummy-version
adamabeshouse Jul 19, 2019
c5e4876
Merge pull request #101 from cBioPortal/tt-fix
adamabeshouse Jul 23, 2019
a2a430b
Merge pull request #102 from cBioPortal/changes-for-pv
adamabeshouse Aug 13, 2019
2145747
Merge pull request #103 from cBioPortal/indent
adamabeshouse Aug 13, 2019
c197bd2
Merge pull request #104 from cBioPortal/label-circles
adamabeshouse Aug 19, 2019
f151830
Update broken unit tests
Aug 19, 2019
e3d4916
Merge pull request #105 from cBioPortal/more-changes
adamabeshouse Aug 20, 2019
dc58d45
Add ability to set oncoprint width dynamically
Aug 20, 2019
f1a7af3
Merge pull request #106 from cBioPortal/column-labels
adamabeshouse Aug 21, 2019
f9a40ef
Correctly type last argument of constructor as optional
Aug 21, 2019
f60f477
Allow setting init cell padding
Aug 21, 2019
930e756
Column labels now align baseline to middle instead of bottom
Aug 21, 2019
34d3908
Merge pull request #107 from cBioPortal/more-changes
adamabeshouse Sep 5, 2019
1f03c67
Merge pull request #108 from cBioPortal/fix-vert-scroll
adamabeshouse Sep 5, 2019
6898fba
Merge pull request #109 from cBioPortal/col-label-highlight
adamabeshouse Sep 11, 2019
429feac
Merge pull request #110 from cBioPortal/highlight-fixes
adamabeshouse Sep 12, 2019
794ad22
Merge pull request #111 from cBioPortal/typescript
adamabeshouse Oct 14, 2019
185df91
Update README.md to not give misleading example
adamabeshouse Oct 14, 2019
f542c03
Merge pull request #112 from cBioPortal/colored-circle-column-labels
adamabeshouse Oct 29, 2019
4d2bc85
Merge pull request #113 from cBioPortal/clear-old-code
adamabeshouse Oct 29, 2019
36db937
Merge pull request #114 from cBioPortal/highlight-track
adamabeshouse Oct 30, 2019
9c790b1
Fix bug where highlights would lag behind when scrolling
Oct 30, 2019
ebcbb40
Merge pull request #115 from cBioPortal/highlight-bug
adamabeshouse Oct 30, 2019
3f54212
Merge pull request #116 from cBioPortal/fix-height-issues
adamabeshouse Oct 30, 2019
1685c4d
Merge pull request #117 from cBioPortal/hide-labels
adamabeshouse Nov 1, 2019
b124313
Merge pull request #118 from cBioPortal/track-group-header
adamabeshouse Nov 4, 2019
d5c1add
Merge pull request #119 from cBioPortal/allow-sorting-clustered
adamabeshouse Nov 5, 2019
9e02b2c
Merge pull request #120 from cBioPortal/dropdown-issues
adamabeshouse Nov 5, 2019
5939691
Merge pull request #121 from cBioPortal/headers-class
adamabeshouse Nov 7, 2019
7ec178c
Fix error with mouse events caused by column label canvas
Nov 11, 2019
df40374
Merge pull request #123 from cBioPortal/custom-na-shapes
adamabeshouse Nov 22, 2019
d7f4656
Merge pull request #124 from cBioPortal/gaps
adamabeshouse Dec 11, 2019
2dcf413
Merge pull request #125 from cBioPortal/fix-zoom-to-fit
adamabeshouse Dec 11, 2019
500b14b
Fix bug with gap offset calculation due to faulty computation of numb…
Dec 12, 2019
bfd3d11
Merge pull request #126 from cBioPortal/on-remove
adamabeshouse Jan 3, 2020
680131f
Merge pull request #122 from cBioPortal/number-input
adamabeshouse Jan 9, 2020
70f0c7e
Merge pull request #127 from cBioPortal/custom-max-height
adamabeshouse Jan 14, 2020
35f7c49
Merge pull request #128 from cBioPortal/performance
adamabeshouse Jan 14, 2020
8b7cb3c
Merge pull request #129 from cBioPortal/fix-ztf
adamabeshouse Jan 16, 2020
8bcce88
Merge pull request #130 from cBioPortal/minimap-placement
adamabeshouse Jan 22, 2020
ed0ca90
Merge pull request #131 from cBioPortal/inf-fix
adamabeshouse Mar 19, 2020
f99c1e8
Merge pull request #132 from cBioPortal/no-prepend
adamabeshouse Mar 19, 2020
8ec56e9
Merge pull request #133 from cBioPortal/dependabot/npm_and_yarn/acorn…
adamabeshouse Apr 6, 2020
2bab1c1
Merge pull request #134 from cBioPortal/dependabot/npm_and_yarn/jquer…
adamabeshouse Apr 30, 2020
4283142
Merge pull request #136 from cBioPortal/dependabot/npm_and_yarn/lodas…
adamabeshouse Jul 18, 2020
254b6c6
Merge pull request #135 from cBioPortal/fix-bug
adamabeshouse Aug 3, 2020
3395dd9
Merge pull request #137 from cBioPortal/dependabot/npm_and_yarn/ellip…
adamabeshouse Aug 3, 2020
607f836
Merge pull request #138 from cBioPortal/dependabot/npm_and_yarn/handl…
adamabeshouse Sep 9, 2020
310be2f
Merge pull request #139 from cBioPortal/expose-more
adamabeshouse Sep 9, 2020
2026d2e
Export shapeToSvg
Sep 16, 2020
8d86da0
Merge pull request #140 from cBioPortal/7668-cluster
adamabeshouse Nov 2, 2020
52d829d
Merge pull request #141 from cBioPortal/dependabot/npm_and_yarn/ini-1…
adamabeshouse Dec 15, 2020
f46ae1c
Merge pull request #142 from cBioPortal/dependabot/npm_and_yarn/ellip…
adamabeshouse Mar 9, 2021
9cbf179
Merge pull request #143 from cBioPortal/dependabot/npm_and_yarn/y18n-…
adamabeshouse Mar 31, 2021
ab9b7b7
Merge pull request #144 from cBioPortal/dependabot/npm_and_yarn/ssri-…
adamabeshouse May 4, 2021
0f5d161
Merge pull request #145 from cBioPortal/dependabot/npm_and_yarn/handl…
adamabeshouse May 10, 2021
6ea9c51
Merge pull request #146 from cBioPortal/dependabot/npm_and_yarn/lodas…
adamabeshouse May 17, 2021
08899cd
Merge pull request #148 from cBioPortal/draw-arrays-instanced
adamabeshouse Jun 11, 2021
57160a3
Empty commit for new release
Jun 11, 2021
049e440
Merge pull request #149 from cBioPortal/dependabot/npm_and_yarn/ws-5.2.3
adamabeshouse Jun 11, 2021
d6b37bd
Merge pull request #150 from cBioPortal/refac
adamabeshouse Jun 17, 2021
84a210f
Update version in package.json
Jun 17, 2021
8e3602f
Small bug fix
Jun 17, 2021
31b99d5
Merge pull request #151 from cBioPortal/fixes
adamabeshouse Jun 30, 2021
ace4425
Merge pull request #152 from cBioPortal/dependabot/npm_and_yarn/tar-4…
adamabeshouse Aug 4, 2021
481867a
Merge pull request #153 from cBioPortal/dependabot/npm_and_yarn/path-…
adamabeshouse Aug 11, 2021
855c615
Merge pull request #157 from dianab0/oncoprint-default-tracks
adamabeshouse Feb 1, 2022
dbb248f
Update README.md with more helpful development information
adamabeshouse Apr 13, 2022
7578f43
configure oncoprintjs with rollup
onursumer May 19, 2022
dd231de
fix errors
onursumer May 19, 2022
6cb3ddf
prettier
onursumer May 23, 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
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
*.ejs
*.toml
*.xml
*.py
*module.scss.d.ts
**/generated/**
src/shared/lib/oql/oql-parser.js
packages/**/dist/**
yarn.lock
LICENSE
.prettierignore
.DS_Store
.gitignore
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,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 @@ -222,7 +221,7 @@
"object-sizeof": "^1.2.0",
"oncokb-styles": "~1.3.0",
"oncokb-ts-api-client": "^1.3.1",
"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 @@ -295,11 +294,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-frontend-commons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"cbioportal-utils": "^0.3.20",
"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.22",
"lodash": "^4.17.11",
"lodash": "^4.17.15",
"oncokb-ts-api-client": "^1.3.1",
"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
15 changes: 8 additions & 7 deletions packages/config/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
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 +35,7 @@ export default function getRollupOptions(
},
],
plugins: [
autoExternal(),
externals(nodeExternalsOptions),
postcss({
autoModules: true,
extract: styles,
Expand All @@ -44,12 +45,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.
73 changes: 73 additions & 0 deletions packages/oncoprintjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[![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.

### Using a local version of oncoprintjs during development (e.g. in cBioPortal)

yalc (https://github.com/wclr/yalc) is extremely useful for this.

Whenever you have made a change to oncoprintjs you want to bring into another package:
(1) First navigate to the oncoprint directory. Then build:

npm run build

(2) Then "publish" the package locally using yalc

yalc publish

(3) Now go to the directory of your project (e.g. cbioportal-frontend), and add the local package

yalc add oncoprintjs

(4) Install packages again, using npm or yarn. Now, you will be using your local version of oncoprintjs.

(5) When you no longer want to be using the local version of oncoprintjs, simply run

yalc remove oncoprintjs

And run npm or yarn again.

### 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`.

### Schematic diagrams
oncoprintjs is written loosely with a Model-View-Controller framework, although some Views definitely have their own state.

![image](https://user-images.githubusercontent.com/636232/163244642-6ef2c80e-a0b5-43d6-ab95-24b8f8a4a2a3.png)

![image](https://user-images.githubusercontent.com/636232/163244709-cbe64929-e650-44cd-a579-2de3294dccc0.png)


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