pypath.inputs.opentargets.opentargets_general§

pypath.inputs.opentargets.opentargets_general(dataset: Literal['assoc_direct', 'assoc_indirect', 'adr', 'expr', 'associationByOverallIndirect', 'associationByOverallDirect', 'fda/significantAdverseDrugReactions', 'baselineExpression'], return_df: bool = False, by: str | bool = False) Generator[dict] | dict[str, list[dict]] | pd.DataFrame[source]§

Download data from the Open Targets database.

Parameters:
  • dataset – Name of a dataset, either as a shorthand synonym or as it is shown in the URL.

  • return_df – Return a pandas data frame.

  • by – Name of the variable to be used as top level key in the returned dictionary. If True, the default grouping variable for the given dataset will be used. If False, no grouping will be performed.