Skip to content

Mutations pane y-axis is flattened with certain inputs #244

@Duncan-JR

Description

@Duncan-JR

I've been hitting an issue with the Mutations pane where all mutations get placed on the x-axis if I fiddle with the controls. It happens every time I switch to another pane then go back to Mutations, or whenever I input something to the X Range widget:

Image

Once it happens, resetting the graphic or refreshing my browser doesn't fix it; I have to restart the app.

Here is the example I used here (but it happens with every TS I've tried):

import msprime
import tsinfer

ts_base = msprime.sim_ancestry(
    50,
    sequence_length=1e6,
    random_seed=2,
    recombination_rate=1e-8,
    population_size=1e4,
    model="smc_prime",
)
sim_ts = msprime.sim_mutations(ts_base, rate=1e-8, random_seed=2)
sample_data = tsinfer.SampleData.from_tree_sequence(ts)
test_ts = tsinfer.infer(sample_data, num_threads=8)
test_ts.dump('data/trees/smc_test.trees')

Here are the files:
smc_test.zip

I'm using python 3.10.9 and the current GitHub version of tsbrowse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions