From Beeline to Webgenie
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +60 -0
- .gitignore +7 -0
- Algorithms/.DS_Store +0 -0
- Algorithms/ARBORETO/Dockerfile +20 -0
- Algorithms/ARBORETO/README.md +86 -0
- Algorithms/ARBORETO/runArboreto.py +43 -0
- Algorithms/BTR/Dockerfile +24 -0
- Algorithms/BTR/runBTR.R +36 -0
- Algorithms/GRISLI/.DS_Store +0 -0
- Algorithms/GRISLI/Dockerfile +37 -0
- Algorithms/GRISLI/README.md +101 -0
- Algorithms/GRISLI/runGRISLI/GRISLI +3 -0
- Algorithms/GRISLI/runGRISLI/mccExcludedFiles.log +2 -0
- Algorithms/GRISLI/runGRISLI/readme.txt +102 -0
- Algorithms/GRISLI/runGRISLI/requiredMCRProducts.txt +1 -0
- Algorithms/GRISLI/runGRISLI/run_GRISLI.sh +33 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/README +1 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexArchetypalAnalysis.mexa64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexArchetypalAnalysis.mexw64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexBayer.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexBayer.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCD.mexa64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCD.mexw64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcAAt.mexa64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcAAt.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXAt.mexa64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXAt.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXY.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXY.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXYt.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXYt.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXtY.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXtY.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCombinePatches.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCombinePatches.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConjGrad.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConjGrad.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConvFista.mexa64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConvFista.mexw64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCountConnexComponents.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCountConnexComponents.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCountPathsDAG.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCountPathsDAG.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexDecompSimplex.mexa64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexDecompSimplex.mexw64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexEvalPathCoding.mexa64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexEvalPathCoding.mexw64 +3 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexExtractPatches.mexa64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexExtractPatches.mexw64 +0 -0
- Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaFlat.mexa64 +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,63 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Algorithms/GRISLI/runGRISLI/GRISLI filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexArchetypalAnalysis.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexArchetypalAnalysis.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcAAt.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXAt.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCD.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCD.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConvFista.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConvFista.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexDecompSimplex.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexDecompSimplex.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexEvalPathCoding.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexEvalPathCoding.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaFlat.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaFlat.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaGraph.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaGraph.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaPathCoding.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaPathCoding.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaTree.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaTree.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexIncrementalProx.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexIncrementalProx.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexLasso.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexLasso.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexLassoMask.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexLassoMask.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexLassoWeighted.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexLassoWeighted.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexOMP.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexOMP.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexOMPMask.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexOMPMask.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexProximalFlat.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexProximalFlat.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexProximalGraph.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexProximalGraph.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexProximalPathCoding.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexProximalPathCoding.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexProximalTree.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexProximalTree.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexRidgeRegression.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexRidgeRegression.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexSOMP.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexSOMP.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexSparseProject.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexStochasticProx.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexStochasticProx.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexStructTrainDL.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexStructTrainDL.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexTrainDL_Memory.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexTrainDL_Memory.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexTrainDL.mexa64 filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexTrainDL.mexw64 filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
Algorithms/JUMP3/J3/runJump3 filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
Algorithms/JUMP3/J3p/runJump3 filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
Algorithms/SCINGE/runSCINGE/runSCINGE filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
docs/figs/overview-graphic.png filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
docs/figs/SlingshotOutputVis.png filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
inputs/example/GSD/SlingshotOutputVis.png filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
inputs/
|
| 2 |
+
__pycache__/
|
| 3 |
+
outputs/
|
| 4 |
+
src/.*
|
| 5 |
+
*.ipynb_checkpoints*
|
| 6 |
+
.DS_Store
|
| 7 |
+
.idea/
|
Algorithms/.DS_Store
ADDED
|
Binary file (10.2 kB). View file
|
|
|
Algorithms/ARBORETO/Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# FROM continuumio/anaconda3:2018.12
|
| 3 |
+
|
| 4 |
+
FROM continuumio/anaconda3:2024.02-1
|
| 5 |
+
|
| 6 |
+
LABEL Maintainer="Aditya Pratapa <adyprat@vt.edu>"
|
| 7 |
+
|
| 8 |
+
USER root
|
| 9 |
+
|
| 10 |
+
RUN apt-get update
|
| 11 |
+
|
| 12 |
+
# RUN conda install -y -c bioconda/label/cf201901 arboreto=0.1.5 pandas=0.24.0
|
| 13 |
+
|
| 14 |
+
RUN conda install -y -c bioconda arboreto pandas
|
| 15 |
+
|
| 16 |
+
COPY runArboreto.py /
|
| 17 |
+
|
| 18 |
+
RUN mkdir data/
|
| 19 |
+
|
| 20 |
+
RUN apt-get install time
|
Algorithms/ARBORETO/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*This README.md file was generated on 1/10/2023 by Yiqi Su (yiqisu@vt.edu)*
|
| 2 |
+
<!-- remove all comments (like this) before final save -->
|
| 3 |
+
|
| 4 |
+
# Arboreto
|
| 5 |
+
|
| 6 |
+
Arboreto (https://arboreto.readthedocs.io/en/latest/index.html) currently supports two gene regulatory network (GRN) inference algorithms: GRNBoost2 ([[Paper](https://doi.org/10.1093/bioinformatics/bty916)] [[GitHub](https://github.com/aertslab/GRNBoost)]) and GENIE3 ([[Paper](https://doi.org/10.1371/journal.pone.0012776)] [[GitHub](https://github.com/vahuynh/GENIE3)]).
|
| 7 |
+
|
| 8 |
+
This is the instruction on how to integrate Arboreto to BEELINE. Please follow the following steps:
|
| 9 |
+
|
| 10 |
+
1. **Create ARBORETO folder:** Create a folder called ARBORETO under Beeline/Algorithms for the new method to ensure easy set-up and portability and avoid conflicting libraries/software versions that may arise from the GRN algorithm implmentations.
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
2. **Create runArboreto.py script:** In the ARBORETO folder, create a Python script runArboreto.py to learn graphs from target datasets. The arguments are as follows:
|
| 14 |
+
|
| 15 |
+
- ``--algo`` : specify either GRNBoost2 or GENIE3 to run
|
| 16 |
+
- ``--inFile`` : path of input tab-separated expression file
|
| 17 |
+
- ``--outFile`` : file where the output network is stored
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
3. **Create a Dockerfile:** Create a "Dockerfile" that contains necessary software specifications and commands listed in a specific order from top to bottom.
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
FROM continuumio/anaconda3:2018.12
|
| 24 |
+
|
| 25 |
+
LABEL Maintainer="Aditya Pratapa <adyprat@vt.edu>"
|
| 26 |
+
|
| 27 |
+
USER root
|
| 28 |
+
|
| 29 |
+
RUN apt-get update
|
| 30 |
+
|
| 31 |
+
RUN conda install -y -c bioconda/label/cf201901 arboreto=0.1.5 pandas=0.24.0
|
| 32 |
+
|
| 33 |
+
COPY runArboreto.py /
|
| 34 |
+
|
| 35 |
+
RUN mkdir data/
|
| 36 |
+
|
| 37 |
+
RUN apt-get install time
|
| 38 |
+
|
| 39 |
+
The Dockerfile will run the script runArboreto.py within the Docker container.
|
| 40 |
+
|
| 41 |
+
4. **Add the Dockerfile to initialize.sh script:** Once the Dockerfile is ready, add the following lines to 'initialize.sh' script to create Docker image for Arboreto.
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
cd $BASEDIR/Algorithms/ARBORETO/
|
| 45 |
+
docker build -q -t arboreto:base .
|
| 46 |
+
if ([[ "$(docker images -q arboreto:base 2> /dev/null)" != "" ]]); then
|
| 47 |
+
echo "Docker container for ARBORETO is built and tagged as arboreto:base"
|
| 48 |
+
else
|
| 49 |
+
echo "Oops! Unable to build Docker container for ARBORETO"
|
| 50 |
+
fi
|
| 51 |
+
|
| 52 |
+
5. **Create grnboost2Runner.py and genie3Runner.py scripts:** After buliding the Docker image, create Python scripts called grnboost2Runner.py and genie3Runner.py in Beeline/BLRun folder to setup BLRun objects to read inputs and run GRNBoost2 and GENIE3 respectively inside the Docker image, and also parse the output for evaluation. Specifically, both the two Python scripts contain three functions:
|
| 53 |
+
|
| 54 |
+
- ``generateInputs()`` : This function reads the expression data file, and processes it into the format required by the corresponding algorithm.
|
| 55 |
+
- ``run()`` : This function constructs a "docker run" system command with parameters including the path of input data file. It also specifies where the outputs are written. The docker container run the corresponding algorithm when the parameters are passed.
|
| 56 |
+
- ``parseOutput()`` : This function reads the algorithm-specific output (i.e., outFile.txt) and formats it into a ranked edgelist comma-separated file (i.e., rankedEdges.csv) with columns Gene1, Gene2, and EdgeWeight. The Gene1 column should contain regulators, the Gene2 column the targets, and EdgeWeight column the absolute value of the weight predicted for edge (regulator,target). The ranked edgelist file will be subsequently used by BLEval object.
|
| 57 |
+
|
| 58 |
+
6. **Add GRNBoost2 and GENIE3 to runner.py:** Next, update runner.py script in Beeline/BLRun folder by adding information related to GRNBoost2 and GENIE3, respectively.
|
| 59 |
+
|
| 60 |
+
For GRNBoost2:
|
| 61 |
+
- add "import BLRun.grnboost2Runner as GRNBOOST2"
|
| 62 |
+
- add "'GRNBOOST2':GRNBOOST2.generateInputs" to InputMapper
|
| 63 |
+
- add "'GRNBOOST2':GRNBOOST2.run" to AlgorithmMapper
|
| 64 |
+
- add "'GRNBOOST2':GRNBOOST2.parseOutput" to OutputParser
|
| 65 |
+
|
| 66 |
+
For GENIE3:
|
| 67 |
+
- add "import BLRun.genie3Runner as GENIE3"
|
| 68 |
+
- add "'GENIE3':GENIE3.generateInputs" to InputMapper
|
| 69 |
+
- add "'GENIE3':GENIE3.run" to AlgorithmMapper
|
| 70 |
+
- add "'GENIE3':GENIE3.parseOutput" to OutputParser
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
7. **Add GRNBoost2 and GENIE3 to config.yaml:** The final step is to add the new algorithms GRNBoost2 and GENIE3 and any necessary parameters to the config.yaml located in Beeline/config-files folder. Note that currently BEELINE can only handle one parameter set at a time eventhough multiple parameters can be passed onto the single parameter object.
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
For GRNBoost2:
|
| 77 |
+
- name: "GRNBOOST2"
|
| 78 |
+
params:
|
| 79 |
+
should_run: [True]
|
| 80 |
+
|
| 81 |
+
For GENIE3:
|
| 82 |
+
- name: "GENIE3"
|
| 83 |
+
params:
|
| 84 |
+
should_run: [True]
|
| 85 |
+
|
| 86 |
+
|
Algorithms/ARBORETO/runArboreto.py
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from optparse import OptionParser
|
| 2 |
+
import os
|
| 3 |
+
import sys
|
| 4 |
+
import pandas as pd
|
| 5 |
+
from arboreto.algo import grnboost2, genie3
|
| 6 |
+
from arboreto.utils import load_tf_names
|
| 7 |
+
from distributed import Client, LocalCluster
|
| 8 |
+
|
| 9 |
+
def parseArgs(args):
|
| 10 |
+
parser = OptionParser()
|
| 11 |
+
|
| 12 |
+
parser.add_option('', '--algo', type = 'str',
|
| 13 |
+
help='Algorithm to run. Can either by GENIE3 or GRNBoost2')
|
| 14 |
+
|
| 15 |
+
parser.add_option('', '--inFile', type='str',
|
| 16 |
+
help='Path to input tab-separated expression SamplesxGenes file')
|
| 17 |
+
|
| 18 |
+
parser.add_option('', '--outFile', type = 'str',
|
| 19 |
+
help='File where the output network is stored')
|
| 20 |
+
|
| 21 |
+
(opts, args) = parser.parse_args(args)
|
| 22 |
+
|
| 23 |
+
return opts, args
|
| 24 |
+
|
| 25 |
+
def main(args):
|
| 26 |
+
opts, args = parseArgs(args)
|
| 27 |
+
inDF = pd.read_csv(opts.inFile, sep = '\t', index_col = 0, header = 0)
|
| 28 |
+
|
| 29 |
+
client = Client(processes = False)
|
| 30 |
+
|
| 31 |
+
if opts.algo == 'GENIE3':
|
| 32 |
+
network = genie3(inDF.to_numpy(), client_or_address = client, gene_names = inDF.columns)
|
| 33 |
+
network.to_csv(opts.outFile, index = False, sep = '\t')
|
| 34 |
+
|
| 35 |
+
elif opts.algo == 'GRNBoost2':
|
| 36 |
+
network = grnboost2(inDF.to_numpy(), client_or_address = client, gene_names = inDF.columns)
|
| 37 |
+
network.to_csv(opts.outFile, index = False, sep = '\t')
|
| 38 |
+
|
| 39 |
+
else:
|
| 40 |
+
print("Wrong algorithm name. Should either be GENIE3 or GRNBoost2.")
|
| 41 |
+
|
| 42 |
+
if __name__ == "__main__":
|
| 43 |
+
main(sys.argv)
|
Algorithms/BTR/Dockerfile
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM r-base:3.5.3
|
| 2 |
+
|
| 3 |
+
LABEL maintainer = "Aditya Pratapa <adyprat@vt.edu>"
|
| 4 |
+
|
| 5 |
+
USER root
|
| 6 |
+
|
| 7 |
+
WORKDIR /
|
| 8 |
+
|
| 9 |
+
RUN apt-get update && apt-get install -y git
|
| 10 |
+
|
| 11 |
+
RUN apt-get install time
|
| 12 |
+
|
| 13 |
+
RUN R -e "install.packages(c('Rcpp', 'foreach', 'doParallel', 'poweRlaw', 'diptest', 'igraph', 'infotheo', 'entropy'))"
|
| 14 |
+
|
| 15 |
+
RUN R -e "install.packages('https://cran.r-project.org/src/contrib/BTR_1.2.4.tar.gz', type = 'source', dependencies = TRUE)"
|
| 16 |
+
|
| 17 |
+
RUN mkdir data/
|
| 18 |
+
|
| 19 |
+
WORKDIR data/
|
| 20 |
+
|
| 21 |
+
COPY runBTR.R /data/runBTR.R
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
|
Algorithms/BTR/runBTR.R
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
suppressPackageStartupMessages(library(BTR))
|
| 2 |
+
suppressPackageStartupMessages(library(doParallel))
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
num_cores = 32 #specify the number of cores to be used.
|
| 6 |
+
doParallel::registerDoParallel(cores=num_cores)
|
| 7 |
+
|
| 8 |
+
args <- commandArgs(trailingOnly = T)
|
| 9 |
+
inFile <- args[1]
|
| 10 |
+
inMdl <- args[2]
|
| 11 |
+
maxGenesPerRule <- as.numeric(args[3])
|
| 12 |
+
allow_self <- as.logical(args[4])
|
| 13 |
+
outFile <- args[5]
|
| 14 |
+
Rseed <- args[6]
|
| 15 |
+
|
| 16 |
+
set.seed(Rseed)
|
| 17 |
+
cat("Random seed set to ", Rseed,"\n \n")
|
| 18 |
+
|
| 19 |
+
cat("Running BTR with input file = ", inFile, ", bmodel = ", inMdl,
|
| 20 |
+
", max_varperrule = ", maxGenesPerRule,
|
| 21 |
+
", self_loop = ", allow_self,"\n \n")
|
| 22 |
+
# input expression data
|
| 23 |
+
inputExpr <- read.table(inFile, sep=",", header = 1, row.names = 1)
|
| 24 |
+
inputExpr <- t(inputExpr)
|
| 25 |
+
|
| 26 |
+
#initial boolean model
|
| 27 |
+
boolInit <- read.table(inMdl, sep=",", header = 1, row.names = NULL)
|
| 28 |
+
boolInit = initialise_model(boolInit)
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
# run BTR
|
| 32 |
+
final_model = model_train(cdata = inputExpr, bmodel = boolInit, max_varperrule = maxGenesPerRule,
|
| 33 |
+
verbose = T, self_loop = allow_self)
|
| 34 |
+
#write output
|
| 35 |
+
writeBM(final_model, outFile, gene.names = T, rownames = T)
|
| 36 |
+
cat("Output written to ", outFile, "\n")
|
Algorithms/GRISLI/.DS_Store
ADDED
|
Binary file (6.15 kB). View file
|
|
|
Algorithms/GRISLI/Dockerfile
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:18.04
|
| 2 |
+
|
| 3 |
+
LABEL Maintainer = "Aditya Pratapa <adyprat@vt.edu>"
|
| 4 |
+
|
| 5 |
+
USER root
|
| 6 |
+
|
| 7 |
+
RUN apt-get -qq update && apt-get -qq install -y unzip xorg wget curl libstdc++6
|
| 8 |
+
|
| 9 |
+
RUN mkdir /mcr-install && \
|
| 10 |
+
mkdir /opt/mcr && \
|
| 11 |
+
cd /mcr-install && \
|
| 12 |
+
wget -q http://ssd.mathworks.com/supportfiles/downloads/R2019a/Release/0/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2019a_glnxa64.zip && \
|
| 13 |
+
cd /mcr-install && \
|
| 14 |
+
unzip MATLAB_Runtime_R2019a_glnxa64.zip && \
|
| 15 |
+
./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
|
| 16 |
+
cd / && \
|
| 17 |
+
rm -rf mcr-install
|
| 18 |
+
|
| 19 |
+
RUN mkdir runGRISLI
|
| 20 |
+
|
| 21 |
+
COPY runGRISLI/ /runGRISLI/
|
| 22 |
+
|
| 23 |
+
WORKDIR runGRISLI/
|
| 24 |
+
|
| 25 |
+
ENV LD_LIBRARY_PATH /opt/mcr/v96/runtime/glnxa64:/opt/mcr/v96/bin/glnxa64
|
| 26 |
+
|
| 27 |
+
RUN mkdir -p /root/.mcrCache9.6/GRISLI0/GRISLI/
|
| 28 |
+
|
| 29 |
+
RUN cp -r /runGRISLI/spams-matlab-v2.6/ /root/.mcrCache9.6/GRISLI0/GRISLI/
|
| 30 |
+
|
| 31 |
+
RUN mkdir data/
|
| 32 |
+
|
| 33 |
+
RUN apt-get update
|
| 34 |
+
|
| 35 |
+
RUN apt-get install -y libgomp1 --fix-missing
|
| 36 |
+
|
| 37 |
+
RUN apt-get install time
|
Algorithms/GRISLI/README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*This README.md file was generated on 1/12/2023 by Yiqi Su (yiqisu@vt.edu)*
|
| 2 |
+
<!-- remove all comments (like this) before final save -->
|
| 3 |
+
|
| 4 |
+
# GRISLI: Gene Regulation Inference for Single-cell with LInear differential equations and velocity inference
|
| 5 |
+
|
| 6 |
+
This is the instruction on how to integrate GRISLI2 ([[Paper](https://doi.org/10.1093/bioinformatics/btaa576)] [[GitHub](https://github.com/PCAubin/GRISLI)]) to BEELINE. Please follow the following steps:
|
| 7 |
+
|
| 8 |
+
1. **Create GRISLI folder:** Create a folder called GRISLI under Beeline/Algorithms for the new method to ensure easy set-up and portability and avoid conflicting libraries/software versions that may arise from the GRN algorithm implmentations.
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
2. **Create runGRISLI folder:** In the GRISLI folder, create a runGRISLI folder to store necessary files to run GRISLI:
|
| 12 |
+
|
| 13 |
+
- ``spams-matlab-v2.6`` : the SPAMS toolbox (http://spams-devel.gforge.inria.fr/) to solve the lasso problem
|
| 14 |
+
- ``readme.txt`` : instructions on GRISLI executation
|
| 15 |
+
- ``run_GRISLI.sh`` : shell script for temporarily setting environment variables and executing the application
|
| 16 |
+
- ``requiredMCRProducts.txt`` : required product number of MATLAB Compiler Runtime (MCR):
|
| 17 |
+
- ``35000`` : MATLAB Runtime - Core
|
| 18 |
+
- ``35010`` : MATLAB Runtime - Numerics
|
| 19 |
+
- ``35119`` : MATLAB Runtime - Statistics and Machine Learning Toolbox Addin
|
| 20 |
+
|
| 21 |
+
- ``mccExcludedFiles.log`` : the list of excluded files
|
| 22 |
+
- ``GRISLI`` : example datasets
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
3. **Create a Dockerfile:** Create a "Dockerfile" that contains necessary software specifications and commands listed in a specific order from top to bottom.
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
FROM ubuntu:18.04
|
| 29 |
+
|
| 30 |
+
LABEL Maintainer = "Aditya Pratapa <adyprat@vt.edu>"
|
| 31 |
+
|
| 32 |
+
USER root
|
| 33 |
+
|
| 34 |
+
RUN apt-get -qq update && apt-get -qq install -y unzip xorg wget curl libstdc++6
|
| 35 |
+
|
| 36 |
+
RUN mkdir /mcr-install && \
|
| 37 |
+
mkdir /opt/mcr && \
|
| 38 |
+
cd /mcr-install && \
|
| 39 |
+
wget -q http://ssd.mathworks.com/supportfiles/downloads/R2019a/Release/0/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2019a_glnxa64.zip && \
|
| 40 |
+
cd /mcr-install && \
|
| 41 |
+
unzip MATLAB_Runtime_R2019a_glnxa64.zip && \
|
| 42 |
+
./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
|
| 43 |
+
cd / && \
|
| 44 |
+
rm -rf mcr-install
|
| 45 |
+
|
| 46 |
+
RUN mkdir runGRISLI
|
| 47 |
+
|
| 48 |
+
COPY runGRISLI/ /runGRISLI/
|
| 49 |
+
|
| 50 |
+
WORKDIR runGRISLI/
|
| 51 |
+
|
| 52 |
+
ENV LD_LIBRARY_PATH /opt/mcr/v96/runtime/glnxa64:/opt/mcr/v96/bin/glnxa64
|
| 53 |
+
|
| 54 |
+
RUN mkdir -p /root/.mcrCache9.6/GRISLI0/GRISLI/
|
| 55 |
+
|
| 56 |
+
RUN cp -r /runGRISLI/spams-matlab-v2.6/ /root/.mcrCache9.6/GRISLI0/GRISLI/
|
| 57 |
+
|
| 58 |
+
RUN mkdir data/
|
| 59 |
+
|
| 60 |
+
RUN apt-get update
|
| 61 |
+
|
| 62 |
+
RUN apt-get install -y libgomp1 --fix-missing
|
| 63 |
+
|
| 64 |
+
RUN apt-get install time
|
| 65 |
+
|
| 66 |
+
The Dockerfile will run the GRISLI algorithm within the Docker container.
|
| 67 |
+
|
| 68 |
+
4. **Add the Dockerfile to initialize.sh script:** Once the Dockerfile is ready, add the following lines to 'initialize.sh' script to create Docker image for GRISLI.
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
cd $BASEDIR/Algorithms/GRISLI/
|
| 72 |
+
docker build -q -t grisli:base .
|
| 73 |
+
if ([[ "$(docker images -q grisli:base 2> /dev/null)" != "" ]]); then
|
| 74 |
+
echo "Docker container for GRISLI is built and tagged as grisli:base"
|
| 75 |
+
else
|
| 76 |
+
echo "Oops! Unable to build Docker container for GRISLI"
|
| 77 |
+
fi
|
| 78 |
+
|
| 79 |
+
5. **Create grisliRunner.py script:** After buliding the Docker image, create a Python script called grisliRunner.py in Beeline/BLRun folder to setup BLRun objects to read inputs and run GRISLI inside the Docker image, and also parse the output for evaluation. Specifically, the grisliRunner.py script contains three functions:
|
| 80 |
+
|
| 81 |
+
- ``generateInputs()`` : This function reads the two input data files (i.e., expression data and the pseudotime), and processes them into the format required by the GRISLI.
|
| 82 |
+
- ``run()`` : This function constructs a "docker run" system command with parameters including the path of input data files (i.e., expression data and the pseudotime). It also specifies where the outputs are written. The docker container run GRISLI when the parameters are passed.
|
| 83 |
+
- ``parseOutput()`` : This function reads the grisli-specific output (i.e., outFile.txt) and formats it into a ranked edgelist comma-separated file (i.e., rankedEdges.csv) with columns Gene1, Gene2, and EdgeWeight. The Gene1 column should contain regulators, the Gene2 column the targets, and EdgeWeight column the absolute value of the weight predicted for edge (regulator,target). The ranked edgelist file will be subsequently used by BLEval object.
|
| 84 |
+
|
| 85 |
+
6. **Add GRISLI to runner.py:** Next, update runner.py script in Beeline/BLRun folder by adding information related to GRISLI.
|
| 86 |
+
|
| 87 |
+
- add "import BLRun.grisliRunner as GRISLI"
|
| 88 |
+
- add "'GRISLI':GRISLI.generateInputs" to InputMapper
|
| 89 |
+
- add "'GRISLI':GRISLI.run" to AlgorithmMapper
|
| 90 |
+
- add "'GRISLI':GRISLI.parseOutput" to OutputParser
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
7. **Add GRISLI to config.yaml:** The final step is to add the new algorithm GRISLI and any necessary parameters to the config.yaml located in Beeline/config-files folder. Note that currently BEELINE can only handle one parameter set at a time eventhough multiple parameters can be passed onto the single parameter object.
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
- name: "GRISLI"
|
| 97 |
+
params:
|
| 98 |
+
should_run: [True]
|
| 99 |
+
L: [5]
|
| 100 |
+
R: [1500]
|
| 101 |
+
alphaMin: [0.0]
|
Algorithms/GRISLI/runGRISLI/GRISLI
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f3d3b923b8eb12737981c158816c85a41446004e958a69606c622c7da522676
|
| 3 |
+
size 9888729
|
Algorithms/GRISLI/runGRISLI/mccExcludedFiles.log
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The List of Excluded Files
|
| 2 |
+
Excluded files Exclusion Message ID Reason For Exclusion Exclusion Rule
|
Algorithms/GRISLI/runGRISLI/readme.txt
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
GRISLI Executable
|
| 2 |
+
|
| 3 |
+
1. Prerequisites for Deployment
|
| 4 |
+
|
| 5 |
+
Verify that version 9.6 (R2019a) of the MATLAB Runtime is installed.
|
| 6 |
+
If not, you can run the MATLAB Runtime installer.
|
| 7 |
+
To find its location, enter
|
| 8 |
+
|
| 9 |
+
>>mcrinstaller
|
| 10 |
+
|
| 11 |
+
at the MATLAB prompt.
|
| 12 |
+
|
| 13 |
+
Alternatively, download and install the Linux version of the MATLAB Runtime for R2019a
|
| 14 |
+
from the following link on the MathWorks website:
|
| 15 |
+
|
| 16 |
+
http://www.mathworks.com/products/compiler/mcr/index.html
|
| 17 |
+
|
| 18 |
+
For more information about the MATLAB Runtime and the MATLAB Runtime installer, see
|
| 19 |
+
"Distribute Applications" in the MATLAB Compiler documentation
|
| 20 |
+
in the MathWorks Documentation Center.
|
| 21 |
+
|
| 22 |
+
2. Files to Deploy and Package
|
| 23 |
+
|
| 24 |
+
Files to Package for Standalone
|
| 25 |
+
================================
|
| 26 |
+
-GRISLI
|
| 27 |
+
-run_GRISLI.sh (shell script for temporarily setting environment variables and executing
|
| 28 |
+
the application)
|
| 29 |
+
-to run the shell script, type
|
| 30 |
+
|
| 31 |
+
./run_GRISLI.sh <mcr_directory> <argument_list>
|
| 32 |
+
|
| 33 |
+
at Linux or Mac command prompt. <mcr_directory> is the directory
|
| 34 |
+
where version 9.6 of the MATLAB Runtime is installed or the directory where
|
| 35 |
+
MATLAB is installed on the machine. <argument_list> is all the
|
| 36 |
+
arguments you want to pass to your application. For example,
|
| 37 |
+
|
| 38 |
+
If you have version 9.6 of the MATLAB Runtime installed in
|
| 39 |
+
/mathworks/home/application/v96, run the shell script as:
|
| 40 |
+
|
| 41 |
+
./run_GRISLI.sh /mathworks/home/application/v96
|
| 42 |
+
|
| 43 |
+
If you have MATLAB installed in /mathworks/devel/application/matlab,
|
| 44 |
+
run the shell script as:
|
| 45 |
+
|
| 46 |
+
./run_GRISLI.sh /mathworks/devel/application/matlab
|
| 47 |
+
-MCRInstaller.zip
|
| 48 |
+
Note: if end users are unable to download the MATLAB Runtime using the
|
| 49 |
+
instructions in the previous section, include it when building your
|
| 50 |
+
component by clicking the "Runtime included in package" link in the
|
| 51 |
+
Deployment Tool.
|
| 52 |
+
-This readme file
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
3. Definitions
|
| 57 |
+
|
| 58 |
+
For information on deployment terminology, go to
|
| 59 |
+
http://www.mathworks.com/help and select MATLAB Compiler >
|
| 60 |
+
Getting Started > About Application Deployment >
|
| 61 |
+
Deployment Product Terms in the MathWorks Documentation
|
| 62 |
+
Center.
|
| 63 |
+
|
| 64 |
+
4. Appendix
|
| 65 |
+
|
| 66 |
+
A. Linux systems:
|
| 67 |
+
In the following directions, replace MR/v96 by the directory on the target machine where
|
| 68 |
+
MATLAB is installed, or MR by the directory where the MATLAB Runtime is installed.
|
| 69 |
+
|
| 70 |
+
(1) Set the environment variable XAPPLRESDIR to this value:
|
| 71 |
+
|
| 72 |
+
MR/v96/X11/app-defaults
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
(2) If the environment variable LD_LIBRARY_PATH is undefined, set it to the following:
|
| 76 |
+
|
| 77 |
+
MR/v96/runtime/glnxa64:MR/v96/bin/glnxa64:MR/v96/sys/os/glnxa64:MR/v96/sys/opengl/lib/glnxa64
|
| 78 |
+
|
| 79 |
+
If it is defined, set it to the following:
|
| 80 |
+
|
| 81 |
+
${LD_LIBRARY_PATH}:MR/v96/runtime/glnxa64:MR/v96/bin/glnxa64:MR/v96/sys/os/glnxa64:MR/v96/sys/opengl/lib/glnxa64
|
| 82 |
+
|
| 83 |
+
For more detailed information about setting the MATLAB Runtime paths, see Package and
|
| 84 |
+
Distribute in the MATLAB Compiler documentation in the MathWorks Documentation Center.
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
NOTE: To make these changes persistent after logout on Linux
|
| 89 |
+
or Mac machines, modify the .cshrc file to include this
|
| 90 |
+
setenv command.
|
| 91 |
+
NOTE: The environment variable syntax utilizes forward
|
| 92 |
+
slashes (/), delimited by colons (:).
|
| 93 |
+
NOTE: When deploying standalone applications, you can
|
| 94 |
+
run the shell script file run_GRISLI.sh
|
| 95 |
+
instead of setting environment variables. See
|
| 96 |
+
section 2 "Files to Deploy and Package".
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
|
Algorithms/GRISLI/runGRISLI/requiredMCRProducts.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
35000 35010 35119
|
Algorithms/GRISLI/runGRISLI/run_GRISLI.sh
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
# script for execution of deployed applications
|
| 3 |
+
#
|
| 4 |
+
# Sets up the MATLAB Runtime environment for the current $ARCH and executes
|
| 5 |
+
# the specified command.
|
| 6 |
+
#
|
| 7 |
+
exe_name=$0
|
| 8 |
+
exe_dir=`dirname "$0"`
|
| 9 |
+
echo "------------------------------------------"
|
| 10 |
+
if [ "x$1" = "x" ]; then
|
| 11 |
+
echo Usage:
|
| 12 |
+
echo $0 \<deployedMCRroot\> args
|
| 13 |
+
else
|
| 14 |
+
echo Setting up environment variables
|
| 15 |
+
MCRROOT="$1"
|
| 16 |
+
echo ---
|
| 17 |
+
LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ;
|
| 18 |
+
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ;
|
| 19 |
+
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64;
|
| 20 |
+
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/opengl/lib/glnxa64;
|
| 21 |
+
export LD_LIBRARY_PATH;
|
| 22 |
+
echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH};
|
| 23 |
+
shift 1
|
| 24 |
+
args=
|
| 25 |
+
while [ $# -gt 0 ]; do
|
| 26 |
+
token=$1
|
| 27 |
+
args="${args} \"${token}\""
|
| 28 |
+
shift
|
| 29 |
+
done
|
| 30 |
+
eval "\"${exe_dir}/GRISLI\"" $args
|
| 31 |
+
fi
|
| 32 |
+
exit
|
| 33 |
+
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/README
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Directory where the mexfiles are built
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexArchetypalAnalysis.mexa64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e130b4741a353b5670b8a5970ebf7186aa6d97e3b8cd45513f2803ad624cf2d5
|
| 3 |
+
size 157728
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexArchetypalAnalysis.mexw64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:709d7aee4039682ff281f20f3f60e5ef507590b453d1f8a9e31acaed8ab5180d
|
| 3 |
+
size 151552
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexBayer.mexa64
ADDED
|
Binary file (19.3 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexBayer.mexw64
ADDED
|
Binary file (24.6 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCD.mexa64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df122eb520fbc8859fde16e3d5c4f31ed3be066a7f6c7c65f764a86337adfcd8
|
| 3 |
+
size 118720
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCD.mexw64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:89b86001d9ba54797b31a314338e2c3f362c5c5174babdc74d23a175d6623f4c
|
| 3 |
+
size 104448
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcAAt.mexa64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e5f4ffb2febb2b299a97eae0cdaeb7f287e3a8cb71b5105fb3083570d3cf99f
|
| 3 |
+
size 106856
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcAAt.mexw64
ADDED
|
Binary file (76.3 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXAt.mexa64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:899468198db1bddd54fd33678f164f5c31954acc0de816cd98e76c89115aea6a
|
| 3 |
+
size 107056
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXAt.mexw64
ADDED
|
Binary file (76.3 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXY.mexa64
ADDED
|
Binary file (59.9 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXY.mexw64
ADDED
|
Binary file (50.2 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXYt.mexa64
ADDED
|
Binary file (59.9 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXYt.mexw64
ADDED
|
Binary file (50.2 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXtY.mexa64
ADDED
|
Binary file (59.9 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCalcXtY.mexw64
ADDED
|
Binary file (50.2 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCombinePatches.mexa64
ADDED
|
Binary file (74.3 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCombinePatches.mexw64
ADDED
|
Binary file (64 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConjGrad.mexa64
ADDED
|
Binary file (64.2 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConjGrad.mexw64
ADDED
|
Binary file (53.8 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConvFista.mexa64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:382028beb1d63da58a0c648ee538082d8264fdf48d40b514170d5cdccaf9e852
|
| 3 |
+
size 921976
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexConvFista.mexw64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e0ae12d853a97aae6e2cab050e77ecb3e05d8059133cc16ad9a895bdb0790182
|
| 3 |
+
size 832512
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCountConnexComponents.mexa64
ADDED
|
Binary file (71.1 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCountConnexComponents.mexw64
ADDED
|
Binary file (62.5 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCountPathsDAG.mexa64
ADDED
|
Binary file (67 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexCountPathsDAG.mexw64
ADDED
|
Binary file (60.4 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexDecompSimplex.mexa64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b21e9570dc1b5f164025ae705fc052a2ba6f719e6f8c07836abb4d0933dc5be9
|
| 3 |
+
size 126160
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexDecompSimplex.mexw64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:31c4b237ca9347cead9a0bf8c37395b4f0f2c2203b7af12219fecdf732340894
|
| 3 |
+
size 120832
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexEvalPathCoding.mexa64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ea5326816c1824dfd8ba132a7cb6dbc8bf6d41b1b478b0c88d16451726c3844
|
| 3 |
+
size 414032
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexEvalPathCoding.mexw64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c5476d9cf15e2ada34b92085a388bc1282a4f79e1d6a629f9aede3dd16fc81c
|
| 3 |
+
size 418304
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexExtractPatches.mexa64
ADDED
|
Binary file (70 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexExtractPatches.mexw64
ADDED
|
Binary file (56.8 kB). View file
|
|
|
Algorithms/GRISLI/runGRISLI/spams-matlab-v2.6/build/mexFistaFlat.mexa64
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3689c9303bbc19cf7962c10a4a3113042b9e61dd603e6f9c3639cd20fc746dbb
|
| 3 |
+
size 922384
|