Skip to content

Commit adce8a4

Browse files
Merge branch 'master' into feature/base64-url-encoding
2 parents 7675e5d + a2b7308 commit adce8a4

File tree

5 files changed

+2227
-1481
lines changed

5 files changed

+2227
-1481
lines changed

docs/docs/visualizations/genome-view.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ The genome view shows the selected sample in a circular visualization. This uses
1111

1212
## Interactions
1313

14-
- You can move or resize an interactive brush (light blue) using the mouse. This is linked with a [variant view](./cohort-view) that is shown on the bottom of the genome view.
14+
- You can move or resize an interactive brush (light blue) using the mouse. This is linked with a [variant view](./variant-view) that is shown on the bottom of the genome view.
1515
- You can move your mouse on top of a structural variant to see detailed information on a tooltip.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@types/react": "^17.0.37",
2323
"@types/react-dom": "^17.0.11",
2424
"@types/react-router-dom": "^5.2.0",
25+
"axios": "^1.6.8",
2526
"buffer": "^6.0.3",
2627
"gosling.js": "^0.11.0",
2728
"idb": "^7.0.2",
@@ -31,6 +32,7 @@
3132
"react": "16.13.1",
3233
"react-dom": "16.13.1",
3334
"react-router-dom": "^5.2.0",
35+
"tabulator-tables": "^6.2.0",
3436
"uuid": "^8.3.2"
3537
},
3638
"devDependencies": {

src/App.tsx

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import SampleConfigForm from './ui/sample-config-form';
2323
import { BrowserDatabase } from './browser-log';
2424
import legend from './legend.png';
2525
import UrlsafeCodec from './lib/urlsafe-codec';
26+
import GenomicTable from './ui/genomic-table';
2627

2728
const db = new Database();
2829
const log = new BrowserDatabase();
@@ -509,7 +510,7 @@ function App(props: RouteComponentProps) {
509510
currentSpec.current = JSON.stringify(spec);
510511
// console.log('spec', spec);
511512
return (
512-
<div>
513+
<div>
513514
<GoslingComponent
514515
ref={gosRef}
515516
spec={spec}
@@ -518,7 +519,8 @@ function App(props: RouteComponentProps) {
518519
experimental={{ reactive: true }}
519520
theme={THEME}
520521
/>
521-
</div>
522+
{ demo.table && <GenomicTable gosRef={gosRef} demo_id={demo.id} data_url={demo.table}/>}
523+
</div>
522524
);
523525
// !! Removed `demo` not to update twice since `drivers` are updated right after a demo update.
524526
}, [ready, xDomain, visPanelWidth, drivers, showOverview, showPutativeDriver, selectedSvId, breakpoints, svReads]);

0 commit comments

Comments
 (0)