Plot Read Count Over Exons For A Gene
1
1
Entering edit mode
11.2 years ago
datanerd ▴ 520

HI all,

I have generated the read count data for my genomic locations using bedtools. I need to plot the read count with all exons belonging to the particular gene in one graph (this way for the the genes with their exons on X axis and read count on Y axis. Does anyone know of any R package /tool to do this. Thanks in advance!

coverage plot • 4.3k views
ADD COMMENT
0
Entering edit mode

If you give a more detailed description on the data table you have (e.g. give the output of head -n 5 yourFile.txt) I can help you better.

ADD REPLY
0
Entering edit mode

HI Irsan, Thanks for your post in a similar thread. I used that and the graph looks good. But I would like to have it say gene A segmented into its eons on X axis and the counts on Y axis. The header same as the previous Q. Gene Exon Sample1 Sample 2 Sample 3

Also its whole exon, so its a huge file, can I plot for each gene separately but put them in the same pdf???

ADD REPLY
0
Entering edit mode

Loop over your data frame (probably this can be done efficiently with one of the apply functions) and subset the data frame by gene ID, then make the plot for that gene ID.

ADD REPLY
0
Entering edit mode
11.2 years ago
User6891 ▴ 330

I did the following: load my data in to R --> split up the data based on gene name --> use barplot() function in a for loop to create the plots & save them as .bmp So I didn't use a particular R package, just the standard barplot() function

ADD COMMENT
0
Entering edit mode

Thanks! I will try using this.

ADD REPLY
0
Entering edit mode

Hi Were you able to draw the plot. Cn you share the code?

ADD REPLY
0
Entering edit mode

Hi varun,

Iam sorry I didnt see this earlier. Do you still need any help??

ADD REPLY
0
Entering edit mode

Hi Mamta Can you still share the code

Thanks Varun

ADD REPLY
0
Entering edit mode

Sure Varun. I will email it to you. Can you provide your email ID?

ADD REPLY
0
Entering edit mode

Hi. Can you share your code?

I very appreciate it if you do so :)

ADD REPLY

Login before adding your answer.

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