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

Bed file feature rendering bug for the left most feature that is partially in the viewport #1474

Closed
cheehongsg opened this issue Mar 13, 2022 · 1 comment

Comments

@cheehongsg
Copy link
Contributor

content of hg38_bed_test.bed

chr1	121605200	124938900	High Signal Region
chr1	125067600	125086000	High Signal Region
chr1	125130200	143562200	High Signal Region

Load the bed file to https://igv.org/app/ (IGV-Web app version 1.9.0, igv.js version 2.11.0) on hg38 assembly, and navigate to chr1:124,410,585-125,635,544
image

The expected rendering is:
image

Discrepancy stems from the use of Math.max instead of Math.min at

const width = Math.max(coord.pw, xRight - xLeft)

@jrobinso
Copy link
Contributor

Thanks! Actually I think it should just be const width = xRight - xLeft

jrobinso added a commit that referenced this issue Mar 14, 2022
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

No branches or pull requests

2 participants