|
@@ 592-614 (lines=23) @@
|
| 589 |
|
return cls._run(built, path, to, check, log, quiet, verbose, no_setup) |
| 590 |
|
|
| 591 |
|
|
| 592 |
|
class EntryGeneralFunction(Entry[DrugbankGeneralFunctionSearch]): |
| 593 |
|
@classmethod |
| 594 |
|
def run( |
| 595 |
|
cls, |
| 596 |
|
path: Path = CommonArgs.compounds, |
| 597 |
|
key: str = EntryArgs.key("inter.drugbank:target-fn"), |
| 598 |
|
as_of: Optional[str] = CommonArgs.as_of, |
| 599 |
|
to: Optional[Path] = CommonArgs.to_single, |
| 600 |
|
check: bool = EntryArgs.check, |
| 601 |
|
log: Optional[Path] = CommonArgs.log_path, |
| 602 |
|
quiet: bool = CommonArgs.quiet, |
| 603 |
|
verbose: bool = CommonArgs.verbose, |
| 604 |
|
no_setup: bool = CommonArgs.no_setup, |
| 605 |
|
) -> Searcher: |
| 606 |
|
""" |
| 607 |
|
General functions from DrugBank targets. |
| 608 |
|
|
| 609 |
|
OBJECT: Name of the general function (e.g. "Toxic substance binding") |
| 610 |
|
|
| 611 |
|
PREDICATE: against on target (e.g. "binder", "downregulator", or "agonist"). |
| 612 |
|
""" |
| 613 |
|
built = DrugbankGeneralFunctionSearch(key, Apis.Pubchem, {DrugbankTargetType.target}) |
| 614 |
|
return cls._run(built, path, to, check, log, quiet, verbose, no_setup) |
| 615 |
|
|
| 616 |
|
|
| 617 |
|
class EntryDrugbankTransporter(Entry[DrugbankTargetSearch]): |
|
@@ 567-589 (lines=23) @@
|
| 564 |
|
return cls._run(built, path, to, check, log, quiet, verbose, no_setup) |
| 565 |
|
|
| 566 |
|
|
| 567 |
|
class EntryDrugbankTarget(Entry[DrugbankTargetSearch]): |
| 568 |
|
@classmethod |
| 569 |
|
def run( |
| 570 |
|
cls, |
| 571 |
|
path: Path = CommonArgs.compounds, |
| 572 |
|
key: str = EntryArgs.key("inter.drugbank:target"), |
| 573 |
|
as_of: Optional[str] = CommonArgs.as_of, |
| 574 |
|
to: Optional[Path] = CommonArgs.to_single, |
| 575 |
|
check: bool = EntryArgs.check, |
| 576 |
|
log: Optional[Path] = CommonArgs.log_path, |
| 577 |
|
quiet: bool = CommonArgs.quiet, |
| 578 |
|
verbose: bool = CommonArgs.verbose, |
| 579 |
|
no_setup: bool = CommonArgs.no_setup, |
| 580 |
|
) -> Searcher: |
| 581 |
|
""" |
| 582 |
|
Protein targets from DrugBank. |
| 583 |
|
|
| 584 |
|
OBJECT: Target name (e.g. "Solute carrier family 22 member 11") from DrugBank |
| 585 |
|
|
| 586 |
|
PREDICATE: Action (e.g. "binder", "downregulator", or "agonist") |
| 587 |
|
""" |
| 588 |
|
built = DrugbankTargetSearch(key, Apis.Pubchem, {DrugbankTargetType.target}) |
| 589 |
|
return cls._run(built, path, to, check, log, quiet, verbose, no_setup) |
| 590 |
|
|
| 591 |
|
|
| 592 |
|
class EntryGeneralFunction(Entry[DrugbankGeneralFunctionSearch]): |