strand-specificity for interval_overlap (girafe/genomeIntervals)
1
0
Entering edit mode
@karlerhardberkeleyedu-4569
Last seen 10.2 years ago
Hello all, I've been using the girafe package to make counts tables for two nascent transcript libraries (overlap between aligned reads and genes), which I am comparing directly. I would like to check if there's a difference between "sense" and "antisense" tags within genic regions. I thought I could do this easily by making the following object: library1_sense <- detail(library1[strand(library1)=="+"]) and then using it in the interval_overlap with the list of annotated genes. However, the resulting object is a data frame and not an AlignedGenomeIntervals object, which interval_overlap seems to need. Is there some way around this? Maybe a way to force strandedness in the interval_overlap function? Or another way to create a subset of "+" or "-" strand reads while maintaining the AlignedGenomeIntervals format? I've been reading the manual but I can't find a way to do this. thanks for any help you can offer! Karl Erhard Graduate Student UC Berkeley
girafe girafe • 1.0k views
ADD COMMENT
0
Entering edit mode
@joern-toedling-4617
Last seen 10.2 years ago
Hello, if you omit calling the detail function, the result will be an AlignedGenomeIntervals object: library1_sense <- library1[strand(library1)=="+"] while the result of the "detail" function is a data.frame. And if the object containing the genes is of class "Genome_intervals_stranded" the strand will be taken into account, if it is of class "Genome_intervals" without strand information, the strand does not matter. Hope this answers your question. Best regards, Joern On Thu, Apr 28, 2011 at 2:44 AM, <karlerhard@berkeley.edu> wrote: > > Hello all, > > I've been using the girafe package to make counts tables for two nascent > transcript libraries (overlap between aligned reads and genes), which I am > comparing directly. I would like to check if there's a difference between > "sense" and "antisense" tags within genic regions. > > I thought I could do this easily by making the following object: > > library1_sense <- detail(library1[strand(library1)=="+"]) > > and then using it in the interval_overlap with the list of annotated > genes. However, the resulting object is a data frame and not an > AlignedGenomeIntervals object, which interval_overlap seems to need. > > Is there some way around this? Maybe a way to force strandedness in the > interval_overlap function? Or another way to create a subset of "+" or > "-" strand reads while maintaining the AlignedGenomeIntervals format? > I've been reading the manual but I can't find a way to do this. > > thanks for any help you can offer! > > > Karl Erhard > Graduate Student > UC Berkeley > [[alternative HTML version deleted]]
ADD COMMENT

Login before adding your answer.

Traffic: 485 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6