pypath.inputs.drugbank.DrugbankFull§

class pypath.inputs.drugbank.DrugbankFull(user: str | None = None, passwd: str | None = None, credentials_fname: str | None = None)[source]§

Bases: object

This is a wrapper around the Drugbank full database XML file. Provides access to the full Drugbank database. The class provides two methods: drugbank_drugs_full and drugbank_targets_full. The first method returns a list of namedtuples, each of which represents a drug. The second method returns a list of namedtuples, each of which represents a drug’s target.

Args
user:

E-mail address with registered DrugBank account.

passwd:

Password for the DrugBank account.

__init__(user: str | None = None, passwd: str | None = None, credentials_fname: str | None = None)[source]§

Methods

__init__([user, passwd, credentials_fname])

drugbank_drugs_full([fields])

Returns a list of namedtuples containing detailed information about drugs.

drugbank_external_ids_full()

Returns a dictionary containing all external identifiers of drugs.

drugbank_properties_full()

Returns a dictionary containing calculated properties of drugs.

drugbank_targets_full([fields])

Returns a list of namedtuples containing detailed information about drug-target interactions.

drugbank_drugs_full(fields: str | list[str] | None = None) list[tuple][source]§

Returns a list of namedtuples containing detailed information about drugs.

Args fields:

The fields to return. If None, all XML fields are returned. Default: None

Returns

A list of namedtuples containing information about drugs.

drugbank_external_ids_full() dict[str, dict][source]§

Returns a dictionary containing all external identifiers of drugs.

drugbank_properties_full() dict[str, dict][source]§

Returns a dictionary containing calculated properties of drugs.

drugbank_targets_full(fields: str | list[str] | None = None) list[tuple][source]§

Returns a list of namedtuples containing detailed information about drug-target interactions.

Args
fields:

The fields to return. Default: None

Returns

A list of namedtuples containing information about the target of drugs.