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

Bold insertion indicator for large insertions on pileup track #1688

Merged
merged 4 commits into from Feb 12, 2021

Conversation

cmdcolin
Copy link
Collaborator

@cmdcolin cmdcolin commented Feb 11, 2021

Sort of tangential but related goals to elucidating insertions as #1687

Adds similar insertion indicator seen in igv

Ref fig S2 https://static-content.springer.com/esm/art%3A10.1186%2Fs13059-020-02107-y/MediaObjects/13059_2020_2107_MOESM1_ESM.docx from https://genomebiology.biomedcentral.com/articles/10.1186/s13059-020-02107-y#Sec22

Screenshot from 2021-02-10 20-44-22
The insertion signal for the 6000bp insertion is dispersed by complicated mapping, but can be pieced together from the large numbers

I arbitrarily thresholded it so that len<10 it draws line indicator, and larger than than it makes the bold indicator which draws it as wide as needed to accommodate the number

@github-actions github-actions bot added the needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) label Feb 11, 2021
@codecov
Copy link

codecov bot commented Feb 11, 2021

Codecov Report

Merging #1688 (ac9dd05) into master (f2f5117) will increase coverage by 0.00%.
The diff coverage is 68.42%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1688   +/-   ##
=======================================
  Coverage   58.96%   58.96%           
=======================================
  Files         446      446           
  Lines       20434    20441    +7     
  Branches     4813     4816    +3     
=======================================
+ Hits        12048    12053    +5     
- Misses       8088     8090    +2     
  Partials      298      298           
Impacted Files Coverage Δ
...ns/alignments/src/PileupRenderer/PileupRenderer.ts 70.89% <68.42%> (-0.76%) ⬇️
products/jbrowse-web/src/Loader.tsx 64.86% <0.00%> (+0.67%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2f5117...4f48c5c. Read the comment docs.

@cmdcolin cmdcolin added enhancement New feature or request and removed needs label triage Needs a label to show in changelog (breaking, enhancement, bug, documentation, or internal) labels Feb 11, 2021
@cmdcolin
Copy link
Collaborator Author

cmdcolin commented Feb 11, 2021

Better example screenshot, using HG002 CRAM and dbVar VCF for HG002 (added to test data here)

@cmdcolin
Copy link
Collaborator Author

Note that there is a thing where snps can get drawn on top of the insertion indicator so we could consider making something to fix this, or accept it as is...

@cmdcolin
Copy link
Collaborator Author

renders them as a second pass now, so snp rendering doesn't overlap the bold markers

localhost_3000__config=test_data%2Fconfig_demo json session=local-u5gUnka4h

@cmdcolin cmdcolin merged commit 5d80a11 into master Feb 12, 2021
@cmdcolin cmdcolin deleted the insertion_bold_indicator branch February 12, 2021 19:31
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.

None yet

1 participant