Skip to content

gexijin/idepGolem

Repository files navigation

iDEP (integrated Differential Expression & Pathway analysis)

Description

iDEP is an bioinformatics tool for analyzing gene expression data graphically, interactively and reproducibly. Hosted at http://bioinformatics.sdstate.edu, iDEP is developed as an R package based on the Golem framework.

Run iDEP locally as an R package or via a Docker container

After redesigning our database, the new iDEP can be easily run on your laptop or a local server. Please note that iDEP is being updated frequently. If you run locally, please upgrade to our most recent version on a monthly basis. After being installed as an R package, iDEP can be started from R using the iDEP::run_app() command. This method is time-consuming as it requires the installation of all of the 355 dependent R packages, which takes about an hour on Windows 10. It can take much more time for Mac or Linux users, as many of these R packages require trouble-shooting. A faster alterative is to use the iDEP Docker image on DockerHub. The only requirement is install Docker software on Linux, and Docker Desktop on Windows or MacOS.

System requirements

Most of modern laptop can run iDEP locally. Minimum storage 10GB. Minimum Memory 4GB.

Windows: Docker Desktop (~20 minutes, recommended)

You do not need to understand Docker, just follow this detailed video.

  1. Install Docker Desktop
  2. Start Windows PowerShell as an Administrator. From Windows search bar, type PowerShell to find the Windows PowerShell app. And then select Run as an Administrator. See here for detailed steps.
  3. Enable WSL2
  4. Start the Docker app. From Windows search bar, type Docker, and then select Run. Accept the terms when asked. The Docker engine is now running in the background.
  5. Pull the iDEP Docker image from PowerShell command line.
docker pull gexijin/idep:latest
  1. Run docker container from PowerShell.
docker run --pull -d --name idep -p 3838:3838 gexijin/idep:latest 
  1. You can now use iDEP locally by starting your web browser and enter localhost:3838 in the web address.

Note that the Docker container needs to be kept running as a webserver. If you restart your computer or accidentally closed the Command Prompt window, you need to re-run Step 5.

Windows: R package (~1 hour)

  1. Install a recent version of R such as R 4.30.
  2. Optional: Install IDE such as RStudio or VS Code.
  3. Start R and run these commands. It takes about an hour to install the 355 dependencies! If there are issues with the installation of some of the individual packages, you need to resolve the issues and try to install them.

install.packages("devtools")
devtools::install_github("https://github.com/gexijin/idepGolem")

You might get the following warnings, which can be ignored.

WARNING: Rtools is required to build R packages, but is not currently installed.
package ‘KEGG.db’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
2: In i.p(...) : installation of package ‘GO.db’ had non-zero exit status
3: In i.p(...) :
  installation of package ‘/tmp/RtmpCpiUsZ/file2326c2a50656f/PGSEA_1.60.0.tar.gz’ had non-zero exit status
  1. Start the iDEP from R
idepGolem::run_app()

Windows: Developer mode (~1 hour)

This method enables users to customize the iDEP by changing the source code. We also welcome contributions by submitting Pull Requests.

  1. Install a recent version of R such as R 4.30.
  2. Optional: Install IDE such as RStudio or VS Code.
  3. Obtain a copy of the source code. This can be done manually by downloading an zip file by clicking on the green Code button above. Alternatively, you can fork this repository, install GitHub Desktop, and clone this repository locally using an URL(https://github.com/gexijin/idepGolem.git).
  4. Start R and install the golem package.
install.packages("golem")
  1. Open the downloaded reporsitory from R. The Shiny app can be started by running the run_dev.R script. If R packages are missing, install them and try again. The app is devided into 11 Shiny Modules.

MacOS: Docker container (~10 minutes on MacBook Air)

See video for more details. You do not need to understand what is Docker.

  1. Download Docker Desktop follow instructions here. Make sure you choose the correct version based on your CPU type. For MacBook Air, I chose Apple Chip. If you use an Mac computer that uses Intel CPU, choose the Intel Chip.
  2. Install Docker Desktop. First double-click the downloaded Docker.dmg file in the Downloads folder. Drag the Docker icon into the Application folder from the pop-up window. From Lunch pad, or the Application folder, click on the Docker icon. Click Open when asked. Accept the Terms and the Docker engine is running.
  3. Start a Terminal window by clicking the Launchpad, and type terminal in the search field. Then click the Terminal app.
  4. Pull the iDEP Docker image using this command in the Terminal window.
docker pull gexijin/idep:latest
  1. Run docker container from Linux command line.
docker run --pull -d --name idep -p 3838:3838 gexijin/idep:latest 
  1. You can now use iDEP locally by starting your web browser and enter localhost:3838 in the web address.

Note that the Docker container needs to be kept running as a webserver. If you restart your computer or accidentally closed the Command Prompt window, you need to re-run Step 5.

Alternatively, you can also install iDEP as an R package or copy the iDEP code locally. The method is the same as above in the Windows section.

Linux: Docker container (~10 minutes)

  1. Install Docker Engine follow instructions here. Many Linux systems have Docker installed by default. On Ubuntu, I used the following scripts.
cd
curl -fsSL https://get.docker.com -o install_docker.sh
sudo sh install_docker.sh
  1. Pull the iDEP Docker image from the Linux command line.
docker pull gexijin/idep:latest
  1. Run docker container from Linux command line.
docker run --pull -d --name idep -p 3838:3838 gexijin/idep:latest 
  1. You can now use iDEP locally by starting your web browser and enter localhost:3838 in the web address. If the is an internal server, replace the localhost with the IP address and make sure that the port 3838 is open.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published