From b4bf9a184289004599f7afe4e6ea1f005b322605 Mon Sep 17 00:00:00 2001 From: shreyasun Date: Wed, 22 May 2024 08:20:23 -0700 Subject: [PATCH 1/2] Added lancet option to dropdown. Also adjusted the config.json and getPathName logic to render tracks without erroring --- src/components/HeaderForm.js | 3 +++ src/config.json | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/src/components/HeaderForm.js b/src/components/HeaderForm.js index a0a8166e..20bd51a2 100644 --- a/src/components/HeaderForm.js +++ b/src/components/HeaderForm.js @@ -493,6 +493,9 @@ class HeaderForm extends Component { }; getPathNames = async (graphFile) => { + if (graphFile === null){ + return; + } this.setState({ error: null }); try { const json = await this.props.APIInterface.getPathNames(graphFile, this.cancelSignal); diff --git a/src/config.json b/src/config.json index e71eed1d..d908c5ae 100644 --- a/src/config.json +++ b/src/config.json @@ -42,6 +42,39 @@ "bedFile": "exampleData/cactus.bed", "region": "ref:1-100", "dataType": "built-in" + }, + { + "name": "Lancet example", + "tracks": [ + { + "trackFile": null, + "trackType": "graph", + "trackColorSettings": { + "mainPalette": "#000000", + "auxPalette": "greys", + "colorReadsByMappingQuality": false + } + }, + { + "trackFile": null, + "trackType": "read", + "trackColorSettings": { + "mainPalette": "blues", + "auxPalette": "blues" + } + }, + { + "trackFile": "../../Downloads/STM_DataShare_Nov07_2023 2/giraffe_alignments/tumor.chr1_7290357_7290857.gam", + "trackType": "read", + "trackColorSettings": { + "mainPalette": "reds", + "auxPalette": "reds" + } + } + ], + "bedFile": "https://public.gi.ucsc.edu/~anovak/vg-data/lancet_2023-11-07/index.bed", + "region": "chr1:7290357-7290857", + "dataType": "built-in" } ], "vgPath": "", From 2fff6ad94b5b5a0f8967b70a3b631d5ff92853da Mon Sep 17 00:00:00 2001 From: shreyasun Date: Mon, 27 May 2024 09:54:17 -0700 Subject: [PATCH 2/2] Adjusted options in config --- src/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.json b/src/config.json index d908c5ae..caedca8c 100644 --- a/src/config.json +++ b/src/config.json @@ -64,7 +64,7 @@ } }, { - "trackFile": "../../Downloads/STM_DataShare_Nov07_2023 2/giraffe_alignments/tumor.chr1_7290357_7290857.gam", + "trackFile": null, "trackType": "read", "trackColorSettings": { "mainPalette": "reds",