UsageΒΆ
π Quick start (CLI)ΒΆ
π Prepare input filesΒΆ
data/
βββ drug_names.txt # One drug per line
βββ node_dict.csv # Gene β Node mapping
βββ synergy_data.csv # Optional: drug combinations + effects
π Create config fileΒΆ
my_config.json:
{
"global": {"output_dir": "results", "base_data_dir": "data"},
"paths": {
"drug_names_file": "drug_names.txt",
"node_dict_file": "node_dict.csv",
"synergy_data_file": "synergy_data.csv"
},
"options": {"double_drug_screen": true}
}
βΆοΈ Run pipelineΒΆ
# Full pipeline
drexpa --config my_config.json
# Generate profiles only
drexpa --config my_config.json --until profiles
# Specific steps
drexpa --config my_config.json --steps profiles,panel
# Verbose mode (structured logging + timing)
drexpa --config my_config.json --verbose
β¨οΈ CLI optionsΒΆ
Option |
Description |
Example |
|---|---|---|
|
Custom config JSON file |
|
|
Override synergy data file |
|
|
Override output directory |
|
|
Run until step (inclusive) |
|
|
Specific steps (comma-separated) |
|
|
Enable structured logging + timing |
|
π Pipeline stepsΒΆ
load_dataβ Load synergy datachembl_idsβ Resolve ChEMBL IDs (requires ChEMBL network access)dosesβ Extract & process drug doses (requires concentration columns)targetsβ Query internal drug-target databasenode_targetsβ Map targets to logical model nodesprofilesβ Generate unique drug profiles with Pipeline IDscombinationsβ Prepare drug combinations (requires synergy data)panelβ Create drug panel (DrugLogics format)perturbationsβ Generate perturbation files per conditionsynergiesβ Process observed synergies
Dependencies are resolved automatically: --until panel runs steps 1β8 with all prerequisites.
π Python APIΒΆ
from drexpa import run_pipeline
config = {
"global": {"output_dir": "results"},
"paths": {
"drug_names_file": "data/drugs.txt",
"node_dict_file": "data/nodes.csv",
}
}
# Full pipeline
run_pipeline(config_dict=config)
# Specific steps
run_pipeline(
config_dict=config,
synergy_data_file="data/synergy.csv",
steps_to_run=["profiles", "panel"],
)
π¦ Output filesΒΆ
File |
Step |
Content |
|---|---|---|
|
|
Drug name β ChEMBL ID mapping |
|
|
Drugs with IC50 concentrations |
|
|
Drug β Targets from database |
|
|
Drug β Logical model nodes |
|
|
Drug profiles with Pipeline IDs |
|
|
Drug panel (DrugLogics format) |
|
|
Formatted drug panel file |
|
|
Per-tissue perturbation files |