Closed jonbrenas closed 9 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
5198e85
) 97.51% compared to head (c7531bd
) 97.51%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
CI picks up a bug in notebooks/plot_haplotype_clustering.ipynb
ag3.plot_haplotype_clustering(
region="2R:28,480,000-28,490,000",
sample_sets=["3.0"],
sample_query="taxon == 'arabiensis'",
analysis="gamb_colu_arab",
cohorts="admin1_year",
cohort_size=None,
width=1000,
height=400,
)
TypeError: scatter() got an unexpected keyword argument 'cohorts'
This seems to be because all of the **plot_kwargs
are being passed to px.scatter()
, which I gather doesn't take a cohorts
param.
Sorry, a little bit of a git hiccough. It is better now.
Thanks @jonbrenas. Can you remove all outputs from the notebook - we normally do that to keep the notebook files light.
There's some reworking of the plot_haplotypes_clustering()
function coming in via #450, so I have manually merged the changes from this PR into #450. I'll close here.
This seems to work on tests. Samples that do not belong to any cohort are shown on the plot (with a different colour or symbol, depending on the option selected) but do not appear in the legend. I don't know if that's the behaviour we want.