The xDTD Analysis repository is dedicated to the investigation and analysis of variances in KGML-xDTD models, with a focus on random forest (RF) prediction probabilty performance. This project is a part of the 6 week rotation project at David Koslicki Lab.
-
Investigate Schema Variances Between the Models:
- Explore and analyze differences between xDTD models.
- Examine each model's schema characteristics and trends.
-
Investigate RF Prediction Probability Performance:
- Examine RF prediction probability results for 100 drug-disease pairs.
- Assess prediction performance variance for each model.
Each scripts contain data location and instructions necessary to perform each analysis. To conduct the analysis use the scripts in the following order below:
-
xDTD_Schema_Analysis_Scripts
contains scripts for schema analsysis forNode Mapping
,Path Result
, andDrug-Disease Pairs
. -
xDTD_Drug-DiseasePairs_Extract
contains script to extract drug-disease pairs. The directory also contains 154 drug-disease pairs used for the rotation project in CSV file format. -
xDTD_RandomForest_Instruction
contains script to run the random forest mode to obtain the drug-disease prediction probabiltiy. -
xDTD_RandomForest_Prediction_Analysis
is the final step in analysis. It contains script to extract prediction probability scores of hundred drug-disease pairs and visualization, scatter plot, of the result.
The core of the analysis is encapsulated in the Jupyter notebook script. This script contains the necessary code and instructions to perform the KGML-xDTD analysis, addressing the rotation project objectives.
The folder holds the visual output results of the analysis. These results are presented in both PDF, PNG, and JPEG formats.
- Install Conda.
- Obtain
.yml
files for the conda environment from here. - Install conda environments using the following commands:
# Install Mamba
conda install -c conda-forge mamba
# Configure conda environments
mamba env create -f envs/graphsage_p2.7env.yml
mamba env create -f envs/xDTD_training_pipeline_env.yml
# Activiate the 'xDTD_training_pipeline' conda environment
conda activate xDTD_training_pipeline
To begin your analysis or reproduce the results, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/your-username/xDTD-Analysis.git
-
Navigate the project directory:
cd xDTD-Analysis
-
Import, or download, and decompress the data files. The location of the data for each analysis is provided in each Jupyter Notebook script.
-
Open and run the Jupyter notebook scripts:
jupyter notebook <name_of_the_script>.ipynb
This will initiate the analysis and generate the results.
We recommend you have the following specifications to successfuly run the pipeline and the scripts.
• Operating system(s): Linux (Ubuntu)
• Programming language: Shell Script (Bash) and Jupyter Notebook Script with Python 3.8.12
• Other requirements: Mamba version 1.5.0 and Anaconda version 23.7.4