def __save_calculated_spc_file_and_hash_for_data(data, dist_matrix, cluster, log): DEBUG("Saving calculated SPC cluster to file...") h = __calculate_hash_for_data(data, dist_matrix) save_to_file((cluster, log), SPC_CLUSTER_FILE.format(h))
def __save_calculated_unifrac_file_and_hash_for_data(data, sample_filter, otu_filter, mat): DEBUG("Saving calculated Unifrac distance matrix to file...") h = __calculate_hash_for_data(data, sample_filter, otu_filter) save_to_file(mat, UNIFRAC_DIST_FILE.format(h))