View Single Post
Old 11-06-2012, 08:28 AM   #1
Junior Member
Location: Belgium

Join Date: Feb 2012
Posts: 4
Default Removing overlapping genes from annotation for RNAseq read count


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!
DRAT is offline   Reply With Quote