Skip to content
/ TRate_rl Public template
generated from timnat/TRate

Similar to TRate but normalization is done by 2X of read length (should be provided by user) vs length of the undercurve interval as was done in TRate

License

Notifications You must be signed in to change notification settings

timnat/TRate_rl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRate_rl

The TRate_rl 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 2X of read length (similar to ...). Mass is taken as approximation of the area under coverage curve, i.e. sum of areas of coverage rectangles.

The TRate program takes in three 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
  1. Read length (for single end libraries) and doubled read length for paired end libraries (e.g. 300 for paired end reads of length 150)

USAGE

Prerequisites (MUST be in your PATH)

BEDTOOLS
AWK
g++

Installation

Download TRate_rl

cd TRate_rl

make

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

FOLDER_PATH="your/path/TRate_rl"

Run TRate on test data

 ./TRate_rl.sh ./data/Exons_file.sbed ./data/Coverage_file.bg 300

Output will be in a file Coverage_file.rate_rl

Output format

 Transcript1	0.341895
 Transcript2	1.98961
 Transcript3	0

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

About

Similar to TRate but normalization is done by 2X of read length (should be provided by user) vs length of the undercurve interval as was done in TRate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published