Closed namsaraeva closed 4 months ago
Decided to merge the issues #458 and #447 to avoid possible conflicts in the future since I am editing docstrings.
A little bit more context to the tasscoda issue:
tasccoda.plot_draw_tree(mdata, tree="lineage")
fails with Import Error: to use tasscoda please install ete3 with pip install ete3
even though ete3 is installed (see session info below), so I couldn't generate example plots for all tasscoda plotting functions.
Augur example code:
import pertpy as pt
adata = pt.dt.bhattacherjee()
ag_rfc = pt.tl.Augur("random_forest_classifier")
data_15 = ag_rfc.load(adata, condition_label="Maintenance_Cocaine", treatment_label="withdraw_15d_Cocaine")
adata_15, results_15 = ag_rfc.predict(data_15, random_state=None, n_threads=4)
adata_15_permute, results_15_permute = ag_rfc.predict(data_15, augur_mode="permute", n_subsamples=100, random_state=None, n_threads=4)
data_48 = ag_rfc.load(adata, condition_label="Maintenance_Cocaine", treatment_label="withdraw_48h_Cocaine")
adata_48, results_48 = ag_rfc.predict(data_48, random_state=None, n_threads=4)
adata_48_permute, results_48_permute = ag_rfc.predict(data_48, augur_mode="permute", n_subsamples=100, random_state=None, n_threads=4)
pvals = ag_rfc.predict_differential_prioritization(augur_results1=results_15, augur_results2=results_48, permuted_results1=results_15_permute, permuted_results2=results_48_permute)
ag_rfc.plot_dp_scatter(pvals)
fails too.
pvals = ag_rfc.predict_differential_prioritization(augur_results1=results_15, augur_results2=results_48, permuted_results1=results_15_permute, permuted_results2=results_48_permute)
can't be calculated due to TypeError: Passing a set as an indexer is not supported. Use a list instead.
See session info in the comment above.
Milo:
Couldn't find the reason for this error either
Attention: 2 lines
in your changes are missing coverage. Please review.
Comparison is base (
d49872c
) 63.99% compared to head (8a37d15
) 64.07%. Report is 15 commits behind head on main.
Added plots: