|
| 1 | +--- |
| 2 | +layout: default |
| 3 | +title: Installation |
| 4 | +parent: Documentation |
| 5 | +nav_order: 2 |
| 6 | +--- |
| 7 | + |
1 | 8 | # Installation |
2 | 9 |
|
3 | | -Follow these steps to install the Predomics package: |
| 10 | +## Web Application (Docker) |
4 | 11 |
|
5 | | -1. Install R from [CRAN](https://cran.r-project.org/). |
6 | | -2. Install the required dependencies: |
| 12 | +The fastest way to get started: |
7 | 13 |
|
| 14 | +```bash |
| 15 | +git clone https://github.com/predomics/predomicsapp-web.git |
| 16 | +cd predomicsapp-web |
| 17 | +docker compose up -d |
8 | 18 | ``` |
| 19 | + |
| 20 | +Open [http://localhost:8001](http://localhost:8001) in your browser. Default credentials are created on first launch. |
| 21 | + |
| 22 | +## R Package |
| 23 | + |
| 24 | +1. Install R from [CRAN](https://cran.r-project.org/). |
| 25 | +2. Install the package and dependencies: |
| 26 | + |
| 27 | +```r |
9 | 28 | devtools::install_github("predomics/predomicspkg") |
10 | 29 |
|
11 | | -## install dependencies |
12 | | -install.packages(c("doSNOW", "foreach", "snow", "doRNG", "gtools", "glmnet", "pROC", "viridis", "kernlab", "randomForest","effsize")) |
| 30 | +# Install dependencies |
| 31 | +install.packages(c("doSNOW", "foreach", "snow", "doRNG", "gtools", |
| 32 | + "glmnet", "pROC", "viridis", "kernlab", |
| 33 | + "randomForest", "effsize")) |
| 34 | + |
13 | 35 | if (!requireNamespace("BiocManager", quietly = TRUE)) |
14 | 36 | install.packages("BiocManager") |
15 | 37 | BiocManager::install("BioQC") |
16 | | -# install.packages("testthat") |
17 | | -# install.packages("roxygen2") |
18 | 38 | ``` |
19 | 39 |
|
20 | | -Once eveything is installed un the check ... |
| 40 | +## Python Bindings (gpredomicspy) |
| 41 | + |
| 42 | +Requires Rust toolchain for compilation: |
| 43 | + |
| 44 | +```bash |
| 45 | +# Install Rust |
| 46 | +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
| 47 | + |
| 48 | +# Clone and build |
| 49 | +git clone https://github.com/predomics/gpredomics.git |
| 50 | +git clone https://github.com/predomics/gpredomicspy.git |
| 51 | +cd gpredomicspy |
| 52 | +pip install maturin |
| 53 | +maturin develop --release |
| 54 | +``` |
0 commit comments