No description
  • PostScript 84.6%
  • TeX 13.8%
  • R 1.5%
  • Mathematica 0.1%
Find a file
2020-03-29 11:46:07 +02:00
00_metadata Added packrat summary table 2018-08-01 15:07:02 +02:00
00_rawdata Added example on how to generate complex-protein mapping 2020-03-29 11:46:07 +02:00
01_data
02_performance
03_data
03_performance
04_topology
05_mashup
10_data
11_topology
12_performance
13_complexes
20_data Added genetic scores histogram 2018-08-02 17:28:15 +02:00
21_topology
22_performance
23_boxplots
23_contrasts
23_models
40_data
42_performance
43_boxplots
43_contrasts
43_models
45_mashup
63_boxplots Modified method ranking figure 2018-08-23 10:06:47 +02:00
63_models Added plot on predictions and updated text files (probably emmeans vs lsmeans) 2018-08-01 11:00:10 +02:00
packrat Finally installed the GGally dependence 2018-07-30 11:51:48 +02:00
.gitignore
.Renviron
.Rprofile
00_packrat_table.R Added packrat summary table 2018-08-01 15:07:02 +02:00
01_preprocessing.Rmd
02_diffusion_scores.Rmd
03_config.R
03_multiple_disease.Rmd
03_preprocessing.Rmd
04_positives_analysis.Rmd
05_mashup.m
05_mashup_features.Rmd
10_preprocessing.Rmd
11_positives_analysis.Rmd
11_upgma.R
12_multiple_disease.Rmd
13_complexes.Rmd
13_pilot_cv_schemes.Rmd
20_config.R Added fold imbalance plot 2018-04-03 13:39:42 +02:00
20_preprocessing.Rmd Added genetic scores histogram 2018-08-02 17:28:15 +02:00
21_positives_analysis.Rmd
22_performance.Rmd
23_models.Rmd
40_config.R
40_preprocessing.Rmd
42_performance.Rmd
43_models.Rmd
45_mashup.m
60_abbreviations.R
60_config.R
60_palette25.txt
63_models.Rmd Modified method ranking figure 2018-08-23 10:06:47 +02:00
config.R
genease.Rproj
LICENSE Create LICENSE 2018-10-23 17:51:20 +02:00
README.md Update README 2018-10-09 16:24:13 +02:00

Introduction

The genedise project aims at finding druggable genes for a specific disease based on previously essayed targets. Whether these targets were successful or not is not the primary concern - the fact that there was enough evidence to try them is enough for us. In this way, we aim at mimicking the time-consuming task of proposing new reasonable targets.

The suggestion of new disease genes uses data from OpenTargets as seed gene lists and the STRING protein-protein interaction network to infer new genes.

The project is almost entirely coded using R. Some Matlab code has been necessary to include state of the art approaches.

Structure

The files and directories of this project are proceded by a number that indicates the chronological order of their execution. Scripts are stored in Rmd files. Their outputs are saved in folders sharing their prefix. The most relevant prefixes are:

  • 2X_: analysis on the STRING network
  • 4X_: analysis on the OmniPath network
  • 6X_: plots and models combining both networks (depends on the execution of the 2X an 4X scripts)

Reproducibility

Metadata files

The output of sessionInfo() is always stored in the directory 00_metadata to keep track of the package versions.

Configuration files

There are configuration files, such as 03_config.R, that contain a comprehensive amount of parameters, paths and file names. Generally, these parameters are sourced instead of being hardcoded in the scripts.

Package management

The project has package version control through packrat to ease portability between machines.

External files

Almost all the files in the project are included in the git repository at the moment. Exceptions:

  • STRING database files
  • Network kernel(s)

The route of these files (Sergi's machines) can be found in the config files.

Other

There are several set.seed calls throughout the code. Intermediate results are saved when the space required is not prohibitive.

Workflow

Data preprocessing

  • Check OpenTargets data sanity
  • Choose network: compromise between coverage and size
  • Compute and store graph kernel on chosen network
  • Save cleaned data, mapped to the network of choice

Topology analysis

  • Characterisation of disease genes in terms of network properties
  • Within-disease study
  • Between-disease study

Performance

  1. Load configuration files

  2. Load dataset

  3. Load network data

  4. Build CV folds

  5. Define functions for prediction

  6. Define performance metrics

  7. For each disease,input_type,fold

    1. Define train and validation
    2. Predict for every method using train
    3. Compute performance metrics
    4. Write to disk
  8. Plot metrics

  9. Build statistical models for comparing methods

System requirements

Hardware

The runs have been executed on the following hardware from the UPC:

Code profiling

Running the script is barely possible with 16GB of RAM. We recommend using 32GB to avoid spikes with swapping.

For reference, executing all the diseases under a single repeated CV scheme (25 repetitions, 3 folds per repetition) on eko takes one week. Likewise, sun is twice as fast. The code is a mixture between serial and parallel executions because not all the methods run in parallel.

On the other hand, the computationally intensive code was run on a torque-based cluster, but the parallel R package -part of the R base- was unable to clean up the child processes. This led to memory exhaustion and proved to be infeasible. Alternatives to tackle this while keeping reproducibility might be added in the future.