Heatmap_first_n has no effect on output heatmap

Specifying the parameter heatmap_first_n has no effect on the output heatmap for me in Maaslin2. I tried many different values, including less than 50 and larger than 50, and it always displays 50 regardless.

I figured out the issue.

The function call to maaslin2_heatmap in the function save_heatmap is:

maaslin2_heatmap(
                results_file,
                title,
                cell_value,
                data_label,
                metadata_label,
                border_color,
                color,
                first_n)

It should be:

maaslin2_heatmap(
                results_file,
                title,
                cell_value,
                data_label,
                metadata_label,
                border_color,
                color,
                first_n=first_n)

since there is an argument before first_n, col_rotate, in the function definition of maaslin2_heatmap

Good catch - just fixed it!