unravel.cluster_stats.stats_table module#

Use stats_table.py from UNRAVEL to recursively find and concatenate matching CSVs (e.g., to summarize cluster validation info).

Usage:#

path/stats_table.py -cp cluster_validation_info.csv -o cluster_validation_summary.csv

unravel.cluster_stats.stats_table.parse_args()[source]#
unravel.cluster_stats.stats_table.cluster_summary(csv_pattern, output)[source]#

Recursively find and concatenate CSV files matching the given pattern, sort by the first two columns if they exist, and save the result to the specified output file.

Parameters:#

csv_patternstr

The pattern to match CSV files (e.g., ‘cluster_validation_info.csv’).

outputstr

The output file path where the concatenated CSV will be saved (e.g., ‘cluster_validation_summary.csv’).

unravel.cluster_stats.stats_table.main()[source]#