Skip to content

Add test suite for plot functions#10

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/generate-test-set-for-plot-functions
Draft

Add test suite for plot functions#10
Copilot wants to merge 3 commits intomainfrom
copilot/generate-test-set-for-plot-functions

Conversation

Copy link

Copilot AI commented Feb 26, 2026

No tests existed for any of the plot functions in pycrosstalker/plots/plot.py. This adds test/test_plots.py with 13 tests covering all public plot functions using the existing rawdata/ fixtures.

New tests (test/test_plots.py)

Test Function Notes
test_plot_cci / test_plot_cci_exp plot_cci CTR graph; EXP with log=True; validates returned fig/ax
test_plot_pca_LR_comparative_ggi / _no_ggi plot_pca_LR_comparative Both ggi=True and ggi=False code paths
test_plot_bar_rankings_cci / _cgi / _with_type_filter plot_bar_rankings cci mode, cgi mode, and type='LR' filter
test_plot_sankey / _with_target plot_sankey Without and with target gene filter
test_plot_volcane_fisher plot_volcane Fisher stats from data['stats']['EXP_x_CTR']
test_plot_clustermap plot_clustermap LR table pivot heatmap
test_plot_graph_clustermap / _exp_x_ctr plot_graph_clustermap CTR and differential EXP_x_CTR graphs

All tests use the Agg matplotlib backend for headless rendering and call plt.close("all") for cleanup.

Housekeeping

  • Added __pycache__/ and *.pyc patterns to .gitignore to prevent build artifacts from being committed.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 26, 2026 15:06
Co-authored-by: jsnagai <8943000+jsnagai@users.noreply.github.com>
Co-authored-by: jsnagai <8943000+jsnagai@users.noreply.github.com>
Copilot AI changed the title [WIP] Add test set for plot functions Add test suite for plot functions Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants