Can't graph a multiple alignment #322
-
I'm trying to use biotite to graph multiple alignments but I always get the same error: graphics.plot_sequence_logo(ax, alignment) The file test_few_sample.fasta has 13 sequences, each one about 1270 amino acids length.
I don't know where is the error, any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You stumbled upon a bug in the color scheme generation, thank you for the report. I will prepare a fix for the next release.
|
Beta Was this translation helpful? Give feedback.
You stumbled upon a bug in the color scheme generation, thank you for the report. I will prepare a fix for the next release.
The reason is, that at least one of you protein sequences contains either an
'X'
or a'*'
.For now, there are two ways for you to fix this:
'*'
: These symbols probably do not convey information in the plot. So you can remove them via theremove_stops()
method. In the context of your code this means:sequences.append(seq.ProteinSequence(seq_str).remove_stops())
.biotite/src/biotite/sequence/graphics/colorschemes.py
Line 46 in 723c09b