diff --git a/src/components/HeaderForm.js b/src/components/HeaderForm.js index 2043f226..bdb840a2 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..caedca8c 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": null, + "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": "",