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

ete3 throws an error when calling draw_effects() #520

Closed
namsaraeva opened this issue Feb 4, 2024 · 1 comment · Fixed by #527
Closed

ete3 throws an error when calling draw_effects() #520

namsaraeva opened this issue Feb 4, 2024 · 1 comment · Fixed by #527
Assignees
Labels
bug Something isn't working

Comments

@namsaraeva
Copy link
Collaborator

Report

An ImportError occured when running example code for Tasccoda:

import pertpy as pt

adata = pt.dt.tasccoda_example()
tasccoda = [pt.tl](http://pt.tl/).Tasccoda()
mdata = tasccoda.load(
adata, type=“sample_level”,
levels_agg=[“Major_l1", “Major_l2”, “Major_l3", “Major_l4”, “Cluster”], key_added=“lineage”, add_level_name=True)
mdata = tasccoda.prepare(mdata, formula=“Health”, reference_cell_type=“automatic”, tree_key=“lineage”, pen_args={“phi”: 0})
tasccoda.run_nuts(mdata, num_samples=1000, num_warmup=100, rng_key=42)
pt.pl.coda.draw_effects(mdata, covariate=“Health[T.Inflamed]“, tree=“lineage”)

pt.pl.coda.draw_effects() throws Import Error: to use tasscoda please install ete3 with pip install ete3 even though ete3 is installed and can be verified with import ete3 running without any issues.

grafik

Version information

No response

@namsaraeva namsaraeva added the bug Something isn't working label Feb 4, 2024
@namsaraeva
Copy link
Collaborator Author

session_info.txt

@namsaraeva namsaraeva self-assigned this Feb 6, 2024
@namsaraeva namsaraeva linked a pull request Feb 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant