pertpy.metadata.Drug#
- class Drug[source]#
Utilities to fetch metadata for drug studies.
Methods table#
Methods#
- annotate(adata, source='chembl', copy=False)[source]#
Annotates genes by their involvement in applied drugs.
Genes need to be in HGNC format.
- Parameters:
- Return type:
- Returns:
An AnnData object with a new column
drugin the var slot.
- lookup()[source]#
Generate LookUp object for Drug.
The LookUp object provides an overview of the metadata to annotate. annotate function has a corresponding lookup function in the LookUp object, where users can search the compound and targets in the metadata.
- Return type:
- Returns:
Returns a LookUp object specific for drug annotation.