cpa.ComPertAPI.mix_drugs#
- ComPertAPI.mix_drugs(drugs_list, doses_list=None)[source]#
Gets a list of drugs combinations to mix, e.g. [‘A+B’, ‘B+C’] and corresponding doses.
- Parameters:
- drugs_list list
List of drug combinations, where each drug combination is a string. Individual drugs in the combination are separated with a plus.
- doses_list str, optional (default: None)
List of corresponding doses, where each dose combination is a string. Individual doses in the combination are separated with a plus.
- Returns:
If return_anndata is True, returns anndata structure of the combinations, otherwise returns a np.array of corresponding drug.