pertpy.metadata.Drug#
Methods table#
Methods#
- Drug.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 drug in the var slot.
- Drug.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.