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

bug: SVG rendering of ideogram is not happening #1862

Merged
merged 5 commits into from
Aug 5, 2024

Conversation

turner
Copy link
Contributor

@turner turner commented Aug 5, 2024

No description provided.

@@ -129,7 +129,13 @@ async function drawIdeogram({ctx, chr, referenceFrame, genome, width, height, st

IGVGraphics.fillRect(ctx, 0, 0, width, height, {fillStyle: IGVColor.greyScale(255)})

const cytobands = await genome.getCytobands(chr)
let cytobands
if (0 === genome.cytobandSource.cytobands.size) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not do tests with multiple dots like this, there's too much knowledge of genome details. Not all genomes will even have a cytobandSource, but regardless this kind of detailed knowledge of another objects internals shouldn't be exposed.

@jrobinso jrobinso merged commit edde742 into master Aug 5, 2024
2 checks passed
@jrobinso jrobinso deleted the dat_ideogram_svg_render_bug branch August 5, 2024 22:40
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