Git Product home page Git Product logo

rnaseq_pipeline's Introduction

----------------------------------------------
RNA-Seq Analysis Pipeline: detecting mutations in RNA-Seq samples, exam genotype vs phenotype relationship
Author: Yang Hu
Department of Physiology and Biophysics
Weill Cornell Medicine
Email: [email protected];[email protected]
----------------------------------------------

I. Introduction

This RNA-Seq Analysis pipeline has four sections:

  1. Alignment and Counts

  2. Including STAR alignment, Samtools sort, HTSeq Count, and Cufflinks. Must be performed in the high-performance computing enviroment.

  3. Call Somatic mutations and annotate vcf

  4. Including Mpileup, Varscan, and SnpEff. Preferably be performed in the high-performance computing enviroment.

  5. Summarize FPKM, QC and cluster

  6. Including mutation data clean, FPKM data clean, QC, hclust, and mutation/expression comparison. Can be performed on a local machine.

  7. DESeq for gene level comparision

  8. DESeq and downstram analysis. Can be performed on a local machine.

II. Work flow

plot of chunk Flow_work

1). Alignment_and_Counts.sh

Input Materials:
-i Sample.fastq.gz

Output Materials:
-o samtools Sample_name_sorted.bam,Sample_sorted.bam,Sample_sorted.bam.bai
-o HTSeq Sample.bam.count
-o CuffLinks genes.fpkm_tracking,genes.fpkm_tracking, genes.fpkm_tracking, genes.fpkm_tracking

Linux bash shell script:Alignment and Counts This bash shell is written for analyzing multiple projects. One project will have multiple RNA-seq samples.

For example, there are total 155 Waldenström Macroglobulinemia (more than one terabyte) RNA-seq data from two projects("WTCHG" and "zhunter").
The PROJECT_NAME can be changed to fit different projects.

2). CallVar_and_Annotation.sh

Input Materials:
-i Sample_sorted.bam,Sample_sorted.bam.bai

Output Materials:
-o samtools mpileup ${PROJECT_NAME}.mpileup
-o VarScan ${PROJECT_NAME}_mutations.vcf
-o snpEff ${PROJECT_NAME}_Annotated.eff.vcf

Linux bash shell script:Call Somatic mutations and annotate vcf

2-1). If want to merge two Annotated.eff.vcf from two projects, run following script:

#merge multiple Annotated.eff.vcf files with bcftools:
file1=path to file1/${PROJECT_NAME}_Annotated.eff.vcf
file1=path to file2/${PROJECT_NAME}_Annotated.eff.vcf
bgzip $file1
bgzip $file1
file1=${file1}.gz
file2=${file2}.gz
tabix $file1
tabix $file2
bcftools merge -o {merged vcf name}.vcf $file1 $file2
grep -v "##" {merged vcf name}.vcf > {merged vcf name2}.vcf #remove header   

3) Summarize FPKM, QC and cluster

Input Materials:
-i {merged vcf name2}.vcf

Output Materials:
-o boxplot
-o hclust
-o Heatmap
R code:Summarize FPKM, QC and cluster R markdown: somatic variant analysis"

4). DESeq for gene level comparision

Input Materials:
-i Sample_table_${PROJECT_NAME}.csv (table with samples annotation)
-i Sample.bam.count (HTSeq-count files)

Output Materials:
-i gene expression analysis R code:DESeq for gene level comparision R markdown: Diferential expression analysis"

This is inspired by http://genomicsclass.github.io/book/pages/rnaseq_gene_level.html

III. Requirement

System requirements:

32 GB memory high-performance computing (HPC) environment, prefer Sun Grid Engine. Linux and Mac OS 64 bit system

Software requirement: R > 3.3
python 2.7 in server

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.