@@ 820-838 (lines=19) @@ | ||
817 | return cls._run(built, path, to, check) |
|
818 | ||
819 | ||
820 | class EntryTransporterGeneralFunction(Entry[DrugbankGeneralFunctionSearch]): |
|
821 | @classmethod |
|
822 | def run( |
|
823 | cls, |
|
824 | path: Path = _Typer.path, |
|
825 | key: str = _Typer.key("interact.drugbank:pk-function"), |
|
826 | to: Optional[Path] = _Typer.to, |
|
827 | check: bool = _Typer.test, |
|
828 | verbose: int = _Typer.verbose, |
|
829 | ) -> Searcher: |
|
830 | """ |
|
831 | General functions from DrugBank transporters, carriers, and enzymes. |
|
832 | ||
833 | OBJECT: Name of the general function (e.g. "Toxic substance binding") |
|
834 | ||
835 | PREDICATE: "transported by", "carried by", or "metabolized by" |
|
836 | """ |
|
837 | built = DrugbankGeneralFunctionSearch(key, Apis.Pubchem, {DrugbankTargetType.target}) |
|
838 | return cls._run(built, path, to, check) |
|
839 | ||
840 | ||
841 | class EntryDrugbankDdi(Entry[DrugbankDdiSearch]): |
|
@@ 773-791 (lines=19) @@ | ||
770 | return cls._run(built, path, to, check) |
|
771 | ||
772 | ||
773 | class EntryGeneralFunction(Entry[DrugbankGeneralFunctionSearch]): |
|
774 | @classmethod |
|
775 | def run( |
|
776 | cls, |
|
777 | path: Path = _Typer.path, |
|
778 | key: str = _Typer.key("interact.drugbank:target-function"), |
|
779 | to: Optional[Path] = _Typer.to, |
|
780 | check: bool = _Typer.test, |
|
781 | verbose: int = _Typer.verbose, |
|
782 | ) -> Searcher: |
|
783 | """ |
|
784 | General functions from DrugBank targets. |
|
785 | ||
786 | OBJECT: Name of the general function (e.g. "Toxic substance binding") |
|
787 | ||
788 | PREDICATE: against on target (e.g. "binder", "downregulator", or "agonist"). |
|
789 | """ |
|
790 | built = DrugbankGeneralFunctionSearch(key, Apis.Pubchem, {DrugbankTargetType.target}) |
|
791 | return cls._run(built, path, to, check) |
|
792 | ||
793 | ||
794 | class EntryDrugbankTransporter(Entry[DrugbankTargetSearch]): |