Custom-height letters
Hi!
This is a great package and I would definitely use it a lot. I have a question: is there any way to provide custom-height metric to sequence logos? Like in the ggseqlogo package in R, where the letters can even have negative height for depletion: https://omarwagih.github.io/ggseqlogo/#custom-height_logos
Thank you!
Hi, unfortunately there is currently no way to provide custom heights to symbols in a sequence logo.
The only way is modifying the symbols attribute in the input SequenceProfile, but this does not allow for negative heights.
However, the source code of the actual plotting is quite short, if you are willing to implement the use case yourself:
https://github.com/biotite-dev/biotite/blob/ef16ea918a871a3b7814cfd7ed609a3a23ec2f73/src/biotite/sequence/graphics/logo.py#L9-L97
symbol_heights and start_height are the variables you are looking for.
I will keep this issue open, since I think custom heights are a useful feature to have.