networkcommons.methods.prepare_metab_inputs

networkcommons.methods.prepare_metab_inputs(metab_input, compartment_codes)

Prepares the metabolite inputs by adding compartment codes.

Parameters:
  • metab_input (dict) – A dictionary containing the metabolite names and

  • values. (their corresponding)

  • compartment_codes (list) – A list of compartment codes to be added to

  • names. (the metabolite)

Returns:

A dictionary containing the updated metabolite names with compartment codes.

Return type:

dict