def pie_chart_dendrograms(p): samples_dict = DeserializeFromFile(p.files.samples_serialized_file_path) debug("Generating piechart dendrograms", p.files.log_file) ranks = GetCopy(c.ranks[p.type]) if p.type == "rdp": ranks.remove("domain") framework.tools.hcluster.generate( samples_dict, DeserializeFromFile(p.files.otu_library_file_path), pie_charts_dir=p.dirs.pie_charts_dir, dendrogram_prefix=c.pie_chart_dendrogram_file_prefix, ranks=ranks, )
def sample_dendrograms(p): samples_dict = DeserializeFromFile(p.files.sample_map_filtered_samples_dict_file_path) debug("Generating dendrograms for sample map...", p.files.log_file) ranks = GetCopy(c.ranks[p.type]) if p.type == "rdp": ranks.remove("domain") framework.tools.hcluster.generate( samples_dict, DeserializeFromFile(p.files.otu_library_file_path), pie_charts_dir=p.dirs.pie_charts_dir, dendrogram_prefix=c.pie_chart_dendrogram_file_prefix, save_dir=p.dirs.sample_map_dendrograms_dir, map=helper_functions.get_sample_map_dict(p), ranks=ranks, )