Open mmoisse opened 6 years ago
In my opinion the test
transcriptinfo = transcriptinfo[which((transcriptinfo[, 2] >
chromstart & transcriptinfo[, 2] < chromend) | (transcriptinfo[,
3] > chromstart & transcriptinfo[, 3] < chromend)), ]
should be modified into:
transcriptinfo = transcriptinfo[which((transcriptinfo[, 2] >=
chromstart & transcriptinfo[, 2] <= chromend) | (transcriptinfo[,
3] >= chromstart & transcriptinfo[, 3] <= chromend)), ]
in order to account for transcripts starting exactly at the chromstart
AND ending exactly at chromend
. Optionally, it would be nice the part of a certain transcript spanning the chromstart/chromend selection were visualized instead of dropping it.
We you want to zoom into a gene at exon level you don't see the exon anymore. As shown by the following figure:
I believe this has to do with a transcriptinfo filtering step in plotGenes:
I believe you should add the situation where the zoom window falls completely inside a gene:
Which gives the figure I expected:
Here is the code to reproduce the plot