VoigtLab / dnaplotlib

DNA plotting library for Python
MIT License
287 stars 73 forks source link

Proportional sizes of features #30

Closed mandel01 closed 3 years ago

mandel01 commented 3 years ago

I am trying to plot genes proportional to their sizes in a genome and encountering some issues. I noticed that the same issue occurs in the input_gff example, where all of the genes are plotted similar in size even though the GFF file specifies that gene C should be almost twice the size of gene A (1563 nt vs 882 nt). I'd appreciate any feedback on whether I'm interpreting things wrong or whether this may be a bug. Thanks for this cool library!!

chofski commented 3 years ago

This is not an error in the example, it is merely not designed to handle this. There are other examples that show how the length parameter can be altered inline with the actual gene length. See for example: https://github.com/VoigtLab/dnaplotlib/tree/master/gallery/input_bed

mandel01 commented 3 years ago

@chofski Thanks for the reply and great software here!