Plot Rna-Seq Coverage Along A Genome, Bioconductor
1
5
Entering edit mode
13.1 years ago
Jimbo ▴ 120

Hi,

I have some BAM files I've read into R as a GRanges object using readBamGappedAlignments()

I have done the same in order to make an annotated genome, GRanges object using makeTranscriptDbFromUCSC(), followed by transcriptsBy().

I can use countOverlaps, I want to plot my reads in the bamfile against the genome, and visualise it, as well as zooming in on different genes something like:

DIFFERENT READS:
                 ------
                       ------
                            ------
                   ------
                               ------

GENE           :---------------------------->

But preferably with more detail :)

Is there a "canned" way to . I have heard of a way to do it using GenomeGraphs, but the examples are for array data.

Apologies if this isn't the best arena for proposing this question! I appreciate it is quite specific. Thanks for your time.

Cheers

bioconductor genome r rna • 4.9k views
ADD COMMENT
5
Entering edit mode
13.1 years ago

I'd suggest using the rtracklayer package to interact with the UCSC genome browser or use the IGV viewer from the Broad. To interact with the latter from R, have a look at the SRAdb package which allows one to load data, scroll, zoom, and make screen captures, all from the R command line.

ADD COMMENT
1
Entering edit mode

ggbio in the 'devel' branch (due for release next week) might be good here.

ADD REPLY
0
Entering edit mode

Fairness in answering, I am one of the authors of SRAdb.

ADD REPLY
0
Entering edit mode

Thanks, I am looking into it, I notice an example in the vignette I'm going to see if I can bend it to my needs :)

ADD REPLY
0
Entering edit mode

wow! rtracklayer looks pretty useful. I just read the vignette, but, to view local bed files in UCSC, it uploads them to a session? cool. and pretty powerful in combination with SRAdb.

ADD REPLY
0
Entering edit mode

Cheers Martin, this looks potentially really good. Waiting for official R 2.14 release...

ADD REPLY

Login before adding your answer.

Traffic: 2668 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