GithubHelp home page GithubHelp logo

eskutkaan / trate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timnat/trate

0.0 0.0 0.0 16 KB

The TRate program computes "rate" of each transcript according to given coverage file.

License: MIT License

Shell 43.09% C++ 53.32% Makefile 3.58%

trate's Introduction

TRate

The TRate program computes "rate" of each transcript according to given coverage file. Transcripts are coded by coordinates of their exons (bed file for now, gtf/gff in future). Rate is computed as total mass of exons within the transcript divided by total length of exons. Mass is taken as approximation of the area under coverage curve, i.e. sum of areas of coverage rectangles, and length is computed as sum of lengths of bedgraph intervals within exons.

The TRate program takes in two arguments in fixed order.

  1. Exons_file - coordinate sorted bed file that provides locations of exons for the corresponding transcript provided in column 4.

Exons_file format example

 C0000570	10420	10640	Transcript1
 C0000570	128078	128167	Transcript2
 C0000570	128290	128405	Transcript2
 C0000571	72845	73133	Transcript3
 C0000571	73211	73274	Transcript3
  1. Coverage_file - coordinate sorted file in bedgraph format - it can contain coverage data (usually normalized) from RNAseq study, ChIPseq, ATACseq and so on.

Coverage_file format example

 C0000570	10481	10549	0.310587
 C0000570	10579	10610	0.41057
 C0000570	128288	128293	1.105

USAGE

Prerequisites (MUST be in your PATH)

BEDTOOLS
AWK
g++

Installation

Download TRate

cd TRate

make

In file TRate.sh edit path to TRate folder, e.g.

FOLDER_PATH="your/path/TRate"

Run TRate on test data

 ./TRate.sh ./data/Exons_file.sbed ./data/Coverage_file.bg

Output will be in a file Coverage_file.rate.

Output format

 Transcript1	0.341895
 Transcript2	1.98961
 Transcript3	-1

Transcript rate = -1 if no coverage data were found for this transcript.

trate's People

Contributors

timnat 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.