Migrating from 1.0.0¶
MiTo 2.0.0 is a redesign with a new API. The original API stays available as MiTo 1.0.0, the version used for the analyses of the MiTo paper (documentation):
pip install "scmito<2" # 1.0.0
pip install scmito # 2.x
The two versions give different numbers, because the variant pipeline and the clone annotation changed (see the
CHANGELOG). Pipelines that call the 1.0.0 API, such as nf-MiTo, keep working with scmito<2.
The quick start, side by side¶
# 1.0.0
afm = mt.pp.filter_cells(afm, cell_filter='filter2')
afm = mt.pp.filter_afm(afm, filtering='MiTo')
tree = mt.tl.build_tree(afm, precomputed=True, solver='UPMGA')
model = mt.tl.MiToTreeAnnotator(tree)
model.clonal_inference()
mt.pl.plot_tree(tree, features=['MiTo clone'])
# 2.x: functions work in place
mt.pp.filter_cells(afm, cell_filter='filter2')
mt.pp.filter_afm(afm)
tree = mt.tl.build_tree(afm, solver='UPMGA')
mt.tl.annotate_clones(tree, afm) # labels in afm.obs['MiTo_clone']
mt.pl.plot_tree(tree, annot='MiTo_clone')
What changed¶
1.0.0 |
2.x |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
same, with |
AFMs written by 1.x are converted with mito.io.migrate_afm().
Defaults that changed: pp.filter_cells mean_cov_all 20 to 10; pp.kNN_graph k 10 to 15; ReDeeM
edge_trim 4 to 9.
Removed¶
pp:filter_MQuad,filter_MiTo,filter_baseline,filter_cell_clonestl:MiToTreeAnnotator,agg_pseudobulk,bootstrap_MiTo,bootstrap_bin,nb_regressionut:extract_bench_df,fit_betabinom,fit_binom,fit_mixbinom,fit_nbinom,flatten_dict,format_rank_genes_groups,format_tuning,genotype_mix,get_posteriors,get_top_markers,ji,make_folder,order_groups,perturb_AD_counts,rank_items,run_GSEA,run_ORA,select_jobs,subsample_afm,update_params
New¶
io:make_afm_from_counts,migrate_afmpp:cap_candidates,filter_incompatible_variants,filter_known_artefacts,filter_low_quality_variants,filter_low_signal_variants,filter_non_clonal_variants,filter_overdispersed_variants,filter_small_clones,impute_dropouts,select_gt_enriched_variantstl:annotate_clones,clade_support,clone_support,compute_expansions,compute_fitness,evidence_cut,rescue_unassigned,small_clone_passut:dataset_metrics,simulate_afm