Hi @ajaybioinfo,
I've replied to the email you sent me.
Here's the reply
If you want to add some tracks with density data in the format you have given, you will only need to load that data into R and plot it with kpPlotDensity.
Please follow these steps:
1 - Load all your data into R. You can use toGRanges function to directly read the files if they are in the order you specified (1st column chr, 2nd start, 3rd end, and then others optionally). If your data file is called "genes.txt" do it with
my.genes <- toGRanges("genes.txt")
This will read the data and create a GRanges object as needed. If you have any problem you can read the regioneR vignette
2 - Once you have loaded all your data, you will have to plot it using kpPlotDensity. You can find more information on this function the tutorial page. If you have, for example, 2 GRanges objects: "my.genes" and "my.repeats" you can plot them with:
#First prepare your custom genome as you have already done
#Create the karyoplot
AK <- plotKaryotype(genome=custom.genome)
#Plot the genes (on the bottom half of the plotting region as specified by r0 and r1)
kpPlotDensity(AK, data=my.genes, r0=0, r1=0.5)
#Then plot the repeats on above the genes
kpPlotDensity(AK, data=my.repeats, r0=0.5, r1=1)
In the kpPlotDensity Tutorial page and in the Gene Density example you can find more information on how to customize your density plot (change the window width for density calculation), or change the colors, etc...
In the Data Positioning page you can find more information on the r0 and r1 argument and how to use them to change the positioning of your data.
What all have you tried in the past 18 days?
Dear Vijay I have tried in R to generate required image but could not understand how I can generate the coverage graph,.. have you any idea how I can generate those plot if yes please tell.
Thanks in Advance Ajay