Skip to content

Latest commit

 

History

History

src

This folder contains source code used by the repository.

R/python scripts

  • AIDTox model

    • dtox.py learns and evaluates AIDTox model
      • dtox_data.py contains data-formatting functions used for AIDTox model training.
      • dtox_hierarchy.py contains functions used to process sorted AIDTox hiearchy files and compute model statistics.
      • dtox_nn.py contains functions used to build basic neural network structure for AIDTox model.
      • dtox_loss.py contains the the loss function used in AIDTox model.
      • early_stop.py contains early stop function of AIDTox model.
      • dtox_learning.py contains deep learning functions used in the AIDTox model construction.
      • run/run_aidtox_implementation.R generates shell scripts that run AIDTox model (DTox with chemical-gene connections from ComptoxAI) on Tox21 datasets. run/run_dtox_comparison_implementation.R generates shell scripts that run DTox on Tox21 datasets, which matches the configuration of optimal AIDTox model, for performance comparison. run/run_aidtox_null_implementation.R generates shell scripts that run AIDTox model on outcome-shuffled Tox21 datasets under Reactome pathway hierarchy.
    • predict_dtox.py implements trained AIDTox model to predict outcome probability based on input feature data.
    • interpret_dtox.py implements layer-wise relevance propagation to evaluate relevance of AIDTox paths.
      • dtox_lrp.py contains functions used for implementing LRP to evaluate relevance of AIDTox paths.
    • run/run_interpret_aidtox.R generates shell scripts that runs interpretation procedure on optimal AIDTox models trained for Tox21 datasets.
  • Simple machine learning model

    • simple/simple.py develops and evaluates simple machine learning model (random forest or gradient boosting).
      • simple/simple_learning.py contains functions for building, evaluating, and implementing simple machine learning models.
      • run/run_simple.R generates shell scripts that run simple machine learning models on Tox21 datasets under different hyperparameter settings.
  • Model performance analysis

  • AIDTox feature analysis, model performance comparison, and visualization

  • functions.R contains R functions required for other scripts in the repository.

Executable shell scripts