-
Download the PPI file, the motif file, the expression data, and the LIONESS networks for males ages 20-29 in each tissue from GRAND: https://grand.networkmedicine.org/tissues/.
-
Download the curated gene set GMT file from Human MSigDB: https://www.gsea-msigdb.org/gsea/msigdb/collections.jsp.
-
Run GenerateNullPANDA.R to generate the null models, specifying the following variables:
- ppiFilePath: The path to the file containing the protein-protein interaction network.
- motifFilePath: The path to the file containing the transcription factor binding motif.
- nullFilePath: The path to the directory where you wish to store the null model.
-
Run analysisPipeline.R to run BLOBFISH on the gene subsets and to generate plots and perform pathway enrichment analysis results, specifying the following variables:
- dir_subcutaneous_adipose: The directory containing the subcutaneous adipose sample networks.
- dir_skeletal_muscle: The directory containing the skeletal muscle sample networks.
- dir_skin: The directory containing the skin sample networks.
- dir_lung: The directory containing the lung sample networks.
- dir_aorta: The directory containing the aorta sample networks.
- dir_expression: The directory containing the gene expression data.
- outdir: The directory where you wish to save your BLOBFISH networks, plots, and pathway enrichment analysis results.
- gmt_pathway_file: The path to the file where you have stored the GMT pathway file to use with FGSEA (e.g., c2.cp.v2023.2.Hs.symbols.gmt).
- null_file: The path to the file where the null PANDA distribution is stored.
- null_output_file: The path to the file where you wish to store the sampled PANDA distribution to use for BLOBFISH.
-
Run generate_rand_sets.R, specifying the following variables:
- dir_input: The directory containing the compiled sample-specific networks in RDS format, generated using the previous step.
- output_file: The directory where you wish to save the random subsets of genes.
-
Run runBLOBFISH_parallel.sh, specifying the following variables in single_blobfish_run.R:
- outdir: The directory where you wish to save your BLOBFISH results.
- null_file: The path to the file where the BLOBFISH null distribution is stored.
- tissue_dir: The directory containing the compiled sample-specific networks in RDS format.
- randset_file: The directory containing the random subsets of genes.
- randoutputs: The directory where you wish to save your BLOBFISH results (should be identical to outdir) in single_blobfish_run.R.
- pvalsdir: The directory where you wish to store the p-values from the BLOBFISH runs.
-
Run tfcounts.R, specifying the following variables:
- dir_randoutputs: The directory where the BLOBFISH results are stored.
- output_file: The directory where you wish to save the random subsets of genes.
- randset_file: The directory containing the random subsets of genes.
-
Run ensemblTFsAndDescriptions.R to add ENSEMBL IDs and descriptive gene names to BLOBFISH results, specifying the following variables:
- blobfishDir: The directory where the BLOBFISH results are stored.
- motifFile: The directory containing the motif prior file from GRAND.
-
Run prepareOutputsForGenes2Networks.R, modifying the following:
- indir: The directory where your BLOBFISH p-value files are stored.
- outdir: The directory where you wish to save your formatted significance files.
-
Clone the Genes2Networks repository using the command
git clone git@github.com:MaayanLab/Genes2Networks.git. -
Open the
build.gradlefile in the repository where you cloned Genes2Networks and replace the following lines:jcenter()withmavenCentral()apply plugin: 'maven'withapply plugin: 'maven-publish'sourceCompatibility = 1.7withsourceCompatibility = JavaVersion.VERSION_1_8compile 'com.github.MaayanLab.common:common-core:master-SNAPSHOT'withimplementation 'com.github.MaayanLab.common:common-core:master-SNAPSHOT'compile 'com.github.MaayanLab.common:common-swing:master-SNAPSHOT'withimplementation 'com.github.MaayanLab.common:common-swing:master-SNAPSHOT'compile 'com.github.MaayanLab.common:common-graph:master-SNAPSHOT'withimplementation 'com.github.MaayanLab.common:common-graph:master-SNAPSHOT'compile group: 'org.tinyjee.jgraphx', name: 'jgraphx', version:'1.10.1.3'withimplementation group: 'org.tinyjee.jgraphx', name: 'jgraphx', version:'1.10.1.3'testCompile group: 'junit', name: 'junit', version:'3.8.1'withtestImplementation 'junit:junit:4.13.2'- This block:
with this block:
task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' from sourceSets.main.allSource }
tasks.register('sourcesJar', Jar) { dependsOn classes archiveClassifier.set('sources') from sourceSets.main.allSource }
classpath 'de.undercouch:gradle-download-task:3.4.3'withclasspath 'de.undercouch:gradle-download-task:5.6.0'
-
Add the following lines to the bottom of
build.gradle:
compileJava.dependsOn downloadAndUnzipResources
processTestResources.dependsOn downloadAndUnzipResources- Add the following lines after
apply plugin: 'de.undercouch.download':
apply plugin: 'application'
application {
mainClass = 'edu.mssm.pharm.maayanlab.Genes2Networks.Genes2Networks'
}-
Run
gradle run --args="<input_dir>/inputGenesGenes2Network.txt <output_dir>/skinOut.sig <input_dir>/skin.sig", and the analogous runs forsubcutaneous_adipose.sig,skeletal_muscle.sig,lung.sig, andaorta.sig, where <input_dir> is the directory containing the files generated by prepareOutputsForGenes2Networks.R, and <output_dir> is an existing directory where you wish to store the output subnetworks. -
Run analysisGenes2Networks.R, modifying the following:
- indir: The directory where your Genes2Networks result files are saved.
- outdir: The directory where you wish to save your results from the analysis of Genes2Networks.
- blobfishDir: The directory where the BLOBFISH results are stored.
-
Run prepareOutputsForGenes2Networks.R.
- indir: The directory where your BLOBFISH p-value files are stored.
- outdir: The directory where you wish to save your formatted significance files.
-
Run analysisPipelineSP.R, modifying the following:
- indir: The directory where your significant edges (computed using BLOBFISH) are saved.
- outdir: The directory where you wish to save your results from the analysis of SP.
-
Obtain the eQTL networks.
-
Obtain the GENCODE reference file from the website: https://www.gencodegenes.org/human/.
-
Run analysisPipeline_eQTL.R, modifying the following:
- indir: The directory where your eQTL networks are saved.
- outdir: The directory where you wish to save your results from eQTL analysis.
- refFile: The GENCODE reference file path.