Open volkansevim opened 7 years ago
This issue is fundamentally different than issue #3. When you see this error, it is because
lattice.native_conf(seq) == None
Practically, this mean the given lattice protein seq
does not fold to a single native structure. Put another way, there is degeneracy among the lowest energy conformations.
Currently, this method returns None
. Perhaps it should raise an exception. I'll think about that more.
In the meantime, I'll update the tutorial notebook to catch sequences that don't fold.
If lowest energy state is degenerate, then shouldn't alt_conf[0] be equal to alt_conf[1]? I'm seeing -21.33 and -20.89.
The docs aren't clear about this (I'll update them), but k_lowest_confs
returns the k lowest unique conformations. It ignores degenerate states.
so, alt_conf[0]
and alt_conf[1]
will never be the equal. Perhaps I should rename this method k_lowest_unique_confs
to be transparent. We can add a new method k_lowest_confs
to handle degenerate states
I see. Having two different methods is a good idea. Degenerate states are important and they should be reported.
Tutorial fails at the visualization step for some sequences such as ['M', 'I', 'I', 'D', 'C', 'E', 'I', 'T', 'F', 'C'] :