{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2606-00327","title":"Cluster Analysis with Resampling for Validation and Exploration (CARVE)","arxiv_id":"2606.00327","date":"2026-05-29","proceeding":null,"authors":["Kai R. Wycik","Tiffany M. Tang","Tarek M. Zikry","Genevera I. Allen"],"abstract":"Clustering is widely used across the sciences as the foundation for downstream data-driven scientific discoveries. However, clustering results are highly sensitive to the choice of algorithm, preprocessing, and the number of clusters $k$, producing scientific claims that are often not reproducible. The current state of the art for validating clustering solutions consists of clustering validation indices (CVIs) such as Silhouette, Davies-Bouldin, and Calinski-Harabasz, which rely on geometric assumptions that break down on the heavy-tailed, high-dimensional, and nonlinearly structured data encountered in biomedical research. Resampling-based alternatives - grounded in the ideas of clustering stability and generalizability - have been proposed but remain scattered across specialized tools with no unified, accessible software. We fill this gap with CARVE (Cluster Analysis with Resampling for Validation and Exploration), an open-source Python and R package that jointly evaluates multiple clustering algorithms and hyperparameters, returning stability and generalizability diagnostics at the global, cluster, and sample level together with principled selection rules and consensus-based cluster labels. Across six synthetic benchmarks CARVE consistently recovers near-optimal clusterings where classical indices degrade substantially. On experimental genomics and proteomics data sets, CARVE recovers finer biological structure when classical CVIs collapse entirely. CARVE is available with a scikit-learn-compatible Python API and an analogous R interface compatible with Seurat workflows.","url_abs":"https://arxiv.org/abs/2606.00327","url_pdf":"https://arxiv.org/pdf/2606.00327","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2606.00327","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.00327"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/DataSlingers/CARVE","reach":null}],"summary":{"ran":10,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":12,"ran":10,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"34be27a6daaabda7","entry":"coerce_sweep_values","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_sweep.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_sweep.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"34be27a6daaabda7"}},{"code_sha256_prefix":"264491ce72f42fdc","entry":"compute_consensus_matrix","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_consensus.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_consensus.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"264491ce72f42fdc"}},{"code_sha256_prefix":"c6f0262e6419d8a4","entry":"compute_consensus_metrics","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_consensus.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_consensus.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c6f0262e6419d8a4"}},{"code_sha256_prefix":"7d75fb28a26a97d2","entry":"count_clusters","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_utils.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7d75fb28a26a97d2"}},{"code_sha256_prefix":"6ad2456f5aff80c5","entry":"estimate_knn_gamma","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_grids.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_grids.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6ad2456f5aff80c5"}},{"code_sha256_prefix":"806743fd6a3731d6","entry":"plot_cluster_boxplot","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_plotting.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_plotting.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"806743fd6a3731d6"}},{"code_sha256_prefix":"72780fea9728b867","entry":"plot_consensus_matrix","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_plotting.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_plotting.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"72780fea9728b867"}},{"code_sha256_prefix":"49c2f3326f7db18c","entry":"reorder_consensus_matrix","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_consensus.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_consensus.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"49c2f3326f7db18c"}},{"code_sha256_prefix":"66cb9e558d14b1d1","entry":"resolve_mode","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_types.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_types.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"66cb9e558d14b1d1"}},{"code_sha256_prefix":"fe3b8d1a429bc576","entry":"split_subsample_indices","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_utils.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe3b8d1a429bc576"}},{"code_sha256_prefix":"b303ff9c745d3fef","entry":"compute_generalizability_scores","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_accuracy.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_accuracy.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b303ff9c745d3fef"}},{"code_sha256_prefix":"f6d8c016eaf3b9b0","entry":"plot_metric_over_n_clusters","repo":"DataSlingers/CARVE","repo_kind":"found_in_text","path":"src/carve/_plotting.py","file_url":"https://github.com/DataSlingers/CARVE/blob/HEAD/src/carve/_plotting.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f6d8c016eaf3b9b0"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}