Mercurial > repos > onnodg > cdhit_analysis
diff tests/test_cdhit_analysis.py @ 1:ff68835adb2b draft
planemo upload for repository https://github.com/Onnodg/Naturalis_NLOOR/tree/main/NLOOR_scripts/process_clusters_tool commit d771f9fbfd42bcdeda1623d954550882a0863847-dirty
| author | onnodg |
|---|---|
| date | Mon, 20 Oct 2025 12:27:31 +0000 |
| parents | 00d56396b32a |
| children |
line wrap: on
line diff
--- a/tests/test_cdhit_analysis.py Tue Oct 14 09:09:46 2025 +0000 +++ b/tests/test_cdhit_analysis.py Mon Oct 20 12:27:31 2025 +0000 @@ -591,27 +591,27 @@ assert "Processing complete" in captured.out - def test_16a_prepare_evalue_histogram_valid_data(self): + def test_18a_prepare_evalue_histogram_valid_data(self): """ - Test 16a: prepare_evalue_histogram returns correct counts/bins. + Test 18a: prepare_evalue_histogram returns correct counts/bins. """ from Stage_1_translated.NLOOR_scripts.process_clusters_tool import cdhit_analysis as ca counts, bins = ca.prepare_evalue_histogram([1e-5, 1e-3, 0.5], []) assert counts.sum() == 3 # 3 entries counted assert len(bins) == 51 # 50 bins => 51 edges - def test_16b_prepare_evalue_histogram_empty(self): + def test_18b_prepare_evalue_histogram_empty(self): """ - Test 16b: prepare_evalue_histogram with empty/invalid data returns (None, None). + Test 18b: prepare_evalue_histogram with empty/invalid data returns (None, None). """ from Stage_1_translated.NLOOR_scripts.process_clusters_tool import cdhit_analysis as ca counts, bins = ca.prepare_evalue_histogram([0, None, "bad"], []) assert counts is None assert bins is None - def test_16c_create_evalue_plot_creates_file_and_returns_data(self, tmp_path): + def test_18c_create_evalue_plot_creates_file_and_returns_data(self, tmp_path): """ - Test 16c: create_evalue_plot saves a PNG and returns numeric data. + Test 18c: create_evalue_plot saves a PNG and returns numeric data. """ from Stage_1_translated.NLOOR_scripts.process_clusters_tool import cdhit_analysis as ca out = tmp_path / "eval.png"
