Giter Club home page Giter Club logo

tcgadataanalysis's Introduction

Usage

Quick start

  1. source("TCGA_functions.R")
  2. TCGA_initialize(user, alternatePath = FALSE, projects = FALSE, unit = FALSE)
  3. TCGA_specific_plot_function() # function docs below

Done.

Notes

  1. May need to define whole path to TCGA_functions.R.
  2. User is required to specify data mount point on Ubuntu file system. If your data isn't at /mnt/user/..., then specify your path using TCGA_initialize(alternatePath = "/path/.../tcga/data/).
  3. Projects may be parsed as a vector.
  4. Whichever function you choose; functions may have both required and optional arguments.

Example usage

  1. source("/home/james.swift/Documents/TCGAtools/functions.R")
  2. TCGA_initialize(user = "james.swift", projects = "TCGA-UVM", unit = "TPM")
  3. TCGA_survival_plot_(gene = "CD4", indication = "TCGA-UVM", unit = "TPM")

Function details

All functions that start with TCGA_ are desgined to be called, but any functions that start with private_TCGA_ should not be, these should only be called by TCGAtools functions.

Any arguments assigned a boolean value below are displaying the default values, and are therefore optional.

Survival

TCGA_survival_plot(gene, indication, unit, riskTable = TRUE, censorPlot = TRUE)

For now only one gene, indication, unit per each function call.

Correlation

TCGA_correlation_plot(genes, indications, unit, sampleType, correlation = TRUE, regression = TRUE)

Expression plots by sample type

TCGA_expression_plot_sample(genes, indications, sampleTypes, unit)

Expression cutoff

TCGA_expression_cutoff(type, cutoff, genes, indications, sampleTypes, unit)
  • Type: "boxplot" or "density"
  • Cutoff: Float between 0 and 1

Heatmap

TCGA_heatmap(scaled = TRUE, genes, indication, unit)
  • Scaled: Scale by gene or by patient (sample).

Dependencies

Theming

themes.R

General stylistic attributes for ggplots.

tcgadataanalysis's People

Contributors

james-2879 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.