Bug fix for setting onlyHandleClicksForHighlightedSamples in gCNV track #1917
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
From previous discussion, I remembered there being an option to disable pop up labels when clicking on non highlighted samples. This would be really useful where only a single highlighted sample is being displayed, but wanting to keep a full run of unlabelled and unhighlighted sample traces in grey to the background. I tried adding this to the bed file header but it did not seem to work.
I know this can be set via the track config when initialising the browser window, but this does not work when using things such as IGV web app for loading files.
Example header of file:
Example showing the unlabeled and unhighlighted samples are still visible on click:
Changes
onlyHandleClicksForHighlightedSamples
being defined in bed file header line, and if present setting this to the config objectTesting
Built locally with proposed changes and started up the test browser with
npx http-server
, loaded the test file and the behaviour is as expected. I have attached a minimal test bed of just chromosome X that I used for testing.test.gcnv.bed.gz
Example of it working:
igv_js.mp4