We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68f2aa8 commit f1f46d0Copy full SHA for f1f46d0
1 file changed
drevalpy/models/drp_model.py
@@ -213,6 +213,15 @@ def get_concatenated_features(
213
cell_line_input=cell_line_input,
214
drug_input=drug_input,
215
)
216
+ if drug_view is not None:
217
+ if drug_view not in inputs:
218
+ raise ValueError(f"Expected drug_view '{drug_view}' to be in inputs, but it was not. Inputs: {inputs}")
219
+ if cell_line_view is not None:
220
+ if cell_line_view not in inputs:
221
+ raise ValueError(
222
+ f"Expected cell_line_view '{cell_line_view}' to be in inputs, but it was not. Inputs: {inputs}"
223
+ )
224
+
225
cell_line_features = None if cell_line_view is None else inputs.get(cell_line_view)
226
drug_features = None if drug_view is None else inputs.get(drug_view)
227
0 commit comments