Skip to content
Snippets Groups Projects
Commit bda36c14 authored by hjulienn's avatar hjulienn
Browse files

fix heatmap for appli

parent f527909f
No related branches found
No related tags found
1 merge request!16release 2.1
......@@ -444,7 +444,7 @@ def get_worktable_local_heatmap_data(
dataframe.rename(columns={"snp_ids": "ID"}, inplace=True)
column_order = list(dataframe.ID)
pivoted_dataframe = dataframe.pivot_table(columns="ID")
pivoted_dataframe = pivoted_dataframe.reindex_axis(column_order, axis=1)
pivoted_dataframe = pivoted_dataframe.reindex(column_order, axis=1)
# TODO rework the selection to return 5000 snps in total, around the
# region ;)
return pivoted_dataframe.to_csv(index_label="ID")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment