This project presents an algorithm for correlation of Chromosomal Locations with functional biological processes (e.g. Gene Ontology Terms, KEGG Pathways, Transcription Factors), taking into account the TADs that they correspond to.
You can clone the project in your local machine for develpoment and testing purposes using git:
git clone https://github.com/mcmaniou/enrichment-analysis-perTADs
In order to get the project up and running you need to make sure the following packages are installed in your local machine:
install.packages(c("tidyverse","ggplot2","data.table","dplyr","tidyr","ggseqlogo","seqinr","httr","jsonlite","xml2","enrichR","stats","purrr","igraph","ggraph","hrbrthemes","extrafont","gridExtra","ggpubr"))
devtools::install_github("nikopech/saveImageHigh")
If you install the "extrafont" package make sure to download the fonts with the following command. It only needs to be done once.
font_import()
And from Bioconductor:
BiocManager::install(c("KEGGREST","pathview","PWMEnrich","PWMEnrich.Hsapiens.background"))
The project consists of one main script:
- enrichmentAnalysis.R
and three additional scripts, that contain the functions called by the main script:
- goPathwayEnrich.R
- motifEnrich.R
- visualization.R
In order to run the project use the following command:
source("enrichmentAnalysis.R")
By default the project runs using the sample input provided in the Datasets folder. If you want to change the input data, the path of the file must be provided in the enrichmentAnalysis.R
script in the parameter filepath
in line 56.
The output is stored in the Outputs folder.
The main script has the following inputs:
dbs
: vector with a list of the Enrichr libraries used for the enrichment analysis (default is the vectorc("GO_Molecular_Function_2018", "GO_Biological_Process_2018", "KEGG_2019_Human")
, for the complete list of the Enrichr libraries type the commandlistEnrichrDbs()
)genes.cover
: vector with the number of genes covered by the Enrichr libraries, which are in thedbs
(taking into account the chosen libraries, default isc(11459,14433,7802)
)dir_name
: the name of the input data folder (default value isDatasets
)output_folder
: the name of the outputs folder (default value isOutputs
)filepath
: the filepath of the input datasetp.adjust.method
: the method used for adjustment of the p-values of the enrichment analysis (default value is"fdr"
, accepted values are"holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", "none"
)cut.off
: the threshold of significant p-values (default value is0.05
)min.genes
: the minimum number of genes in over-represented terms (default value is3
)system
: the OS of the local machine (default value is"win"
)
The raw sample input data used in this project were provided by the Institute of Applied Biosciences (INAB), Centre for Research and Technology Hellas (CERTH) and then processed with the open-source tool InterTADs.
This project is licensed under the MIT License - see the LICENSE file for details.