data_exchange

synergy.utils.data_exchange.to_synergyfinder(d1, d2, E, d1_name='drug1', d2_name='drug2', d1_unit='uM', d2_unit='uM')[source]

Converts the data to the format used by synergyfinder.

Parameters:
  • d1 (ArrayLike) – The concentrations of the first drug.

  • d2 (ArrayLike) – The concentrations of the second drug.

  • E (ArrayLike) – The observed responses.

  • d1_name (str) – The name of the first drug.

  • d2_name (str) – The name of the second drug.

  • d1_unit (str) – The unit of the first drug.

  • d2_unit (str) – The unit of the second drug.

Return Union[str, pandas.DataFrame]:

The data in the format used by synergyfinder. This will be a pandas DataFrame if pandas is installed, otherwise it will be a string.