Source code and documentation for "MOTI
See the Wiki for full documentation, operational details and other information.
We recommend using Mamba for environment management. The following commands clone the repository, create the environment from scratch, and install the required packages.
git clone https://github.com/carpenter-singh-lab/motive.git
mamba env create --file environment.yml
mamba activate graphdti
The MOTI
The following command will download inputs
and data
folders:
aws s3 sync --no-sign-request s3://cellpainting-gallery/cpg0034-arevalo-su-motive/broad/workspace/publication_data/2024_MOTIVE .
Alternatively, you can also run the Snakemake pipeline included in this repo which downloads the necessary inputs
and generates the data
files.
snakemake -c1
With 1
being the number of cores you want to use.
Run the following command to train a model on the MOTIbipartite
and st_expanded
graph structures), gene type, data split, and model. An example is provided below.
python run_training.py configs/train/st_expanded/cold_source/gnn_cp.json outputs/
The training will produce a test_results.parquet
file in the outputs/
folder with the predicted scores and percentiles for each source target pair in the test set.
score | y_pred | y_true | percentile | |
---|---|---|---|---|
(1537, 1352) | 0.992261 | True | 1 | 1 |
(336, 2637) | 0.977271 | True | 1 | 0.999981 |
(1714, 2506) | 0.949711 | True | 1 | 0.999962 |
(40, 1452) | 0.923437 | True | 1 | 0.999943 |
(412, 110) | 0.917436 | True | 1 | 0.999924 |