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

Add log scale feature to negative values in WIG track #1873

Merged
merged 4 commits into from
Aug 20, 2024

Conversation

milandomazet
Copy link
Contributor

Hello!

Another PR related to WIG tracks, this time related to log scale and negative values. As I've seen this has not been covered yet in either the JS or desktop version with negative values just being represented as 0. In my mind it makes sense to do the same thing as with the positive values and just represent it "under the line" i.e. as a negative value. I hope this makes sense to you as well.

The result can be seen in the screenshots below.

This first set represents a merged track with two bigwig files which have opposite values
Regular scale:
Screenshot 2024-08-09 at 22 40 45
Log scale:
Screenshot 2024-08-09 at 22 19 05

This one is a single bigwig file with positive and negative values in it
Regular scale:
Screenshot 2024-08-09 at 22 40 32
Log scale:
Screenshot 2024-08-09 at 22 40 24

There was another minor fix related to accounting for y coordinates being 0 based which mostly influences the "line" style of the WIG track. Is there any reason for line not being documented? It was a bit buggy with the SVG output previously but with recent work on the saving to SVG it seems to be working fine. Maybe we could document it together with "points" and "bar"?

@jrobinso jrobinso merged commit 444d9ad into igvteam:master Aug 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants