Closed lbeltrame closed 4 years ago
The reason is that num.transcripts.per.gene
is 0, because the code looks for $transcripts
in the object even if it is not there. It should be set to 1 if no transcript information is available.
More in detail, plot.transcripts=TRUE
(default) wants transcripts unconditionally, regardless if the object has them or not. Probably the code should error in case this happens, telling the user to use plot.transcripts=FALSE
.
Hi Luca (@lbeltrame)
Thanks for the detailed report! I'll see what's the best option here (probably the error or defaulting to a new value "auto") and fix that.
I'll get back to you once this is done.
Bernat
PS: Obviously, if you want to contribute a Pull Request it would be more than welcome!
Example code:
Result: