netmap.masking.internal.dict_to_dataframe¶
- netmap.masking.internal.dict_to_dataframe(mask_dict, column_order_list)¶
Converts a dictionary of binary masks into a pandas DataFrame, respecting a specified column order.
- Parameters:
mask_dict (dict) – A dictionary where keys are gene pair strings and values are 1D numpy arrays (the masks).
column_order_list (list) – A list of gene pair strings specifying the desired order of the DataFrame columns.
- Returns:
A DataFrame with masks as columns, in the specified order.
- Return type:
pd.DataFrame