Giter VIP home page Giter VIP logo

tgirt_benchmark's Introduction

TGIRT-seq benchmarking

This is the repository for storing scripts attempting to compare pipelines for TGIRT-seq gene quantifications.

We used MAQC samples as test data.

Set up environment

conda create -n benchmark \
    python=3.6 \
    bioconductor-deseq2=1.14 \
    salmon=0.8.2 \
    kallisto=0.43 \
    bioconductor-tximport=1.4.0 \
    r-tidyverse \
    hisat2=2.1.0 \
    bowtie2=2.3.3

Download data

python download_data/download.py

and run all the command it generates

Make reference

  1. download Ensembl transcripts
  2. download ERCC transcripts
  3. get rRNA fasta file from NCBI
  4. merge with customized tRNA fasta
  5. Make table matching transcripts to genes
  6. bowtie2 index [rRNA and tRNA]
  7. downlaod ensembl genes from biomart
  8. Make bed file with rRNA, tRNA and ERCC and all ensembl genes
  9. Make SAF file for featureCounts
  10. split bed file for counts
  11. download Ensembl hg38 genome
  12. spike in rRNA and ERCC fasta
  13. make HISAT2 index from the reference
cd download_data
bash make_reference.sh

Aligning and/or quantification

All path should be changed accordingly if running on other machines.

Alignment-free pipelines

Run Kallisto

All scripts are under: pipelines/alignment_free/kallisto/

General command is as followed:

kallisto quant \
	-i ${INDEX} -o ${COUNT_PATH}/${SAMPLENAME} \
	--fr-stranded  --threads=${THREADS}\
	${R1} ${R2}
bash build_index.sh
bash kallisto.sh > command.sh
bash command.sh
Rscript kallisto_DESeq.R          #Tximport then DESeq2

Run Salmon

All scripts are under: pipelines/alignment_free/salmon/

General command is as followed:

salmon quant \
        --seqBias --gcBias \
        --index $INDEX --libType ISF \
        --writeMappings  \
        --threads=${THREADS} \
        --auxDir $RESULTPATH/${SAMPLENAME} \
        --numBootstraps 100 \
    	--mates1 ${R1} --mates2 ${R2} \
		--output $RESULTPATH/${SAMPLENAME} \
    \| samtools view -b@ $THREADS \
    \> ${RESULTPATH}/${SAMPLENAME}.bam
bash build_index.sh
bash salmon.sh > command.sh
bas command.sh
Rscript salmon_DESeq.R    #Tximport then DESeq2

Alignment-based pipelines

Run hisat2+featureCounts

All scripts are under: pipelines/genome_mapping/conventional/

bash hisat2.sh > command.sh
bash command.sh
python feature_counts.py 
python clean_output.py    # for cleaning the featureCounts output for DESeq2

Run genome mapping with TGIRT-map

All scripts are under: pipelines/genome_mapping/tgirt_map_pipeline/

The pipeline can be downloaded here

prepair_command.sh > command.sh
bash command.sh
python makeCountTable.py       #for making a gene count table

Fold-change analysis

Rscript pipelines/genome_mapping/deseq.R

Plottings

Analysis and plottings are mostly done in R scripts under find_DE/.

tgirt_benchmark's People

Contributors

wckdouglas avatar

Stargazers

Paul Donovan avatar Ariel Vina-Rodriguez avatar

Watchers

James Cloos 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.