SEQanswers

SEQanswers (http://seqanswers.com/forums/index.php)
-   Bioinformatics (http://seqanswers.com/forums/forumdisplay.php?f=18)
-   -   Removing overlapping genes from annotation for RNAseq read count (http://seqanswers.com/forums/showthread.php?t=24778)

DRAT 11-06-2012 08:28 AM

Removing overlapping genes from annotation for RNAseq read count
 
Hello,

I am trying to prepare a read count table for DESeq using EasyRNAseq package in R. I followed the vignette and used ensembl.gtf file as my annotation. After constructing my read count table I get warnings about overlapping genes and counting reads more than once but I am not sure how to modify my annotation to avoid it. The manual only mentions that computed gene models can be extracted from created RNAseq object and that overlapping loci should be removed without specifying how to do it. I am able to extract gene models but I am not sure how to correctly process it before re-running the function. Could anyone please give me some advice on how to fix this annotation in R?

I attached the code I used to generate my read count table below:

read.count <-easyRNASeq(format='bam',readLength=50L, organism="Mmusculus", chr.sizes="auto", annotationMethod="gtf", annotationFile="mm9.ensgene.gtf", count="genes", summarization="geneModels", filesDirectory=getwd(), filenames=c("NI_A_accepted_hits.bam","NI_B_accepted_hits.bam","DEX_A_accepted_hits.bam", "DEX_B_accepted_hits.bam","GW_A_accepted_hits.bam", "GW_B_accepted_hits.bam", "DEX_GW_A_accepted_hits.bam", "DEX_GW_B_accepted_hits.bam"), conditions=conditions, outputFormat="RNASeq")

To get gene models I used: geneModels <- geneModel(read.count) but I am stack at this point and I cannot find a way to remove overlapping features. I tried disjoin function but it gives an error: "Error in function (classes, fdef, mtable) : unable to find an inherited method for function "disjoin", for signature "RangedData" "

Thanks a lot for your suggestions!

eszter.ari 04-11-2014 01:17 AM

Take a look at our read counter tool that does not count read-pairs mapped to the same-strand overlapping part of genes: http://seqanswers.com/forums/showthread.php?p=134850
https://code.google.com/p/recog/

TiborNagy 04-11-2014 04:53 AM

You can use bedtools merge to collapse the overlapping regions in mm9.ensgene.gtf


All times are GMT -8. The time now is 05:31 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.