data science tools that operate on anndata objects
git clone https://github.com/gitbenlewis/adata_science_tools.gitconda deactivate
conda remove -n not_base --all
conda env create -f config/env_not_base.yaml -n not_base
conda activate not_baseconda activate not_base
bash example_PMID_33969320/scripts/000_run_everything.bash
python example_simulated_data/scripts/simulate_1_var_covar_age.py
python example_simulated_data/scripts/plot_dotplot_simulate_1_var_covar_age.pyThe repo includes a small config-driven simulated-data workflow in example_simulated_data/.
conda activate not_base
python example_simulated_data/scripts/simulate_1_var_covar_age.py
python example_simulated_data/scripts/plot_dotplot_simulate_1_var_covar_age.pyThe default config in example_simulated_data/config/config.yaml simulates one feature, simulated_feature, from Age and case_control, adds residual y variance so the points are not constrained to exact fit lines, and writes both a baseline AnnData bundle and a dotplot.
The main example knobs are beta or beta_age, beta_case_control, case_control_prob, and residual_stdev.
See docs/_simulate_data.md for the simulation API and config details, and docs/_corr_dotplots.md for the plotting API.
Example outputs: baseline.h5ad and baseline.png.
/adata_science_tools/_plotting/_column_plots.py view src file


