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 new Hi-C color schemes with log scale mode #4336

Merged
merged 5 commits into from Apr 12, 2024
Merged

Conversation

cmdcolin
Copy link
Collaborator

This takes advantage of d3 color scales to add both linear and log color scalings for hi-c. Built-in selectable options are "fall", "viridis", and "juicebox"

Fixes #4331

Example screenshots

Screenshot 2024-04-11 at 1 00 35 AM Screenshot 2024-04-11 at 1 00 46 AM

the aim is for these easy settings to override any config-defined renderer->color callback setting, similar to other types of "state" variables. the "scale interpolator" is actually passed into the color callback so a user defined setting can choose to use it or not. with this, it may be hard for a user to create their own proper d3 color scale but that could be added on

@cmdcolin cmdcolin merged commit ffdb3dd into main Apr 12, 2024
10 checks passed
@cmdcolin cmdcolin deleted the hic_color_schemes branch April 12, 2024 15:20
@cmdcolin cmdcolin added the enhancement New feature or request label Apr 12, 2024
@cmdcolin
Copy link
Collaborator Author

321765445-d35c1cae-0990-427b-83fa-3f08af509ecb

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add better color scales to hic tracks
1 participant