Giter Site home page Giter Site logo

them6_gsea's Introduction

THEM6 GSEA analysis

About

Gene Set Enrichment Analysis (GSEA) and visualization for THEM6 project.

Blomme, A. et al. EMBO molecular medicine, 14(3), e14764. THEM6-mediated reprogramming of lipid metabolism supports treatment resistance in prostate cancer

Content

Main files:

  • them6_gsea.Rmd - R notebook with R code used for the analysis.
  • dockRstudio_v4.0.3_run.sh - bash script to start docker Rstudio server.
  • them6_gsea_renv.lock - renv lock file with R packages specifications.
  • generate_them6_report.sh - bash script to generate R notebook report; it requires that Rstudio server is running (dockRstudio_v4.0.3_run.sh) and new_port used is the same in both files.

Main folders:

  • datasets - contains input RNA-seq results datasets.
  • scripts - contains helper functions.
  • results_dir - contains results from the analysis.

Usage

Clone the project repository

git clone https://github.com/prepiscak/them6_gsea.git

The them6_gsea folder contains all the code needed to reproduce the analysis. R dependencies can be managed either using the them6 docker image (preferred; see Requirements) or renv lock file (them6_gsea_renv.lock).

Preferred - interactive

Start Rstudio server and generate the analysis report manually.

  1. Start Rstudio server
# new_port=7667
# username: rstudio
# password: them6
bash dockRstudio_v4.0.3_run.sh 
  1. Go to localhost:7666 in your browser (Chrome, Firefox). This will open Rstudio server login page where default Username: rstudio and Password: them6
  2. Open project file workspace.Rproj and once loaded open them6_gsea.Rmd file.
  3. Run the analysis_parameters chunk to restore the R dependencies.
  4. Use the "Knit" button to generate results and render the report and/or explore/run individual code chunks.

โš ๏ธ analysis_parameters chunk (see point 4. above) needs to be run first otherwise you will get:

"Packages...not installed" 
or when using "Knit" button:
"Rendering R Markdown...requires...the following packages:..."

Preferred - automatic

Generate results and render report using generate_them6_report.sh script.

  1. start Rstudio server
# new_port=7667
# username: rstudio
# password: them6
bash dockRstudio_v4.0.3_run.sh 
  1. While the Rstudio server is running execute (in a separate terminal) generate_them6_report.sh - this will generate the results, them6_gsea.html and log file (generate_them6_report.log).
# new_port=7667 needs to be the same in:
#   dockRstudio_v4.0.3_run.sh and generate_them6_report.sh
bash generate_them6_report.sh

Local Rstudio + renv

  1. Start local version of Rstudio
  2. Open them6_gsea.Rmd
  3. Use the "Knit" button to generate results and render the report and/or explore/run individual code chunks. R dependencies should be automatically restored from them6_gsea_renv.lock file.

Requirements

them6_gsea's People

Contributors

prepiscak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.