def make_heatmap_for_major_players(taxa_dict, make_svg_too):
    # load the whole data set.
    data_reduced = load_data()

    # Make plot w/ default settings
    abundance_plot_utils.heatmap_from_taxa_dict(
        dataframe = data_reduced,
        taxa_dict = taxa_dict,
        facet = 'rep',
        annotate = False,
        main_dir=MAIN_DIR,
        plot_dir='./plots/',
        svg=make_svg_too,
        size_spec=False, aspect_spec=False)
def make_heatmap_for_predators(taxa_dict, make_svg_too):
    # same as for major players, but exclude "other" from heat map.
    # load the whole data set.
    data_reduced = load_data()

    # Make plot w/ default settings
    abundance_plot_utils.heatmap_from_taxa_dict(
        dataframe = data_reduced,
        taxa_dict = taxa_dict,
        facet = 'rep',
        annotate = False,
        main_dir=MAIN_DIR,
        plot_dir='./plots/',
        size_spec=False, aspect_spec=False,
        svg=make_svg_too,
        summarise_other=False)  #<--- how to keep the "other" bar off.
def make_heatmap_for_particular_family_with_other(family,
                                                  taxa_dict,
                                                  make_svg_too):
    # for Methylococcaceae, which we want an "other" bar
    # Load all the data
    data_reduced = load_data()
    # Trim the dataframe to only that family:
    data_for_family = data_reduced[data_reduced['Family']==family]

    # Generate this plot for the subset of data pertaining to that family:
    abundance_plot_utils.heatmap_from_taxa_dict(
        dataframe = data_for_family,
        taxa_dict = taxa_dict,
        facet = 'rep',
        annotate = False,
        main_dir=MAIN_DIR,
        plot_dir='./plots/',
        size_spec=False, aspect_spec=False,
        summarise_other=True,  # <-- want an "other" bar for the family.
        svg=make_svg_too,
        check_totals_sum_to_1=False)  # <-- don't expect col totals to be 1