Closed tillea closed 6 years ago
The immediate error is here: https://github.com/fhcrc/seqmagick/blob/0.7.0/seqmagick/transform.py#L703
protein = seq.translate(table, to_stop=to_stop)
It appears in a round about way that the problem stems from Biopython 1.71's support for dual-coding codons which can be amino acids or stop codons, see https://github.com/biopython/biopython/pull/1501
i.e. The seqmagick code's own subclass CodonWarningTable
appears to need updating.
--
As an aside, since I was initially looking at line 70 rather than 703, I suspect the cleanest solution (but not necessarily the fastest) for the dashes_cleanup
function would be:
for c in prune_chars:
record.seq = record.seq.ungap(c)
Currently these methods expect a single letter gap character, and will not take a tuple/list of gap characters either. Therefore currently the seqmagick code is calling the Python string translate method instead.
Fixed by #76.
Thanks @peterjc!
@tillea the fix to work with Biopython 1.71 is small enough that unless there is a new seqmagick release soon, I would suggest you include it as a patch in the Debian package recipe.
I think we will cut a new release by the end of the week-- right, @metasoarous ?
On Wed, May 30, 2018 at 04:59:37AM -0700, Erick Matsen wrote:
I think we will cut a new release by the end of the week-- right, @metasoarous ? That's nice in general but not urgently needed for my purpose since I've uploaded the package into Debian new queue using Peter's patch. Thanks a lot, Andreas.
We should be able to get it out by the end of the week, yes. Glad you're unblocked for now @tillea.
Hi, I intend to package seqmagick for Debian. When I try to run the test suite I get 7 errors:
This happens when using the Debian packaged version of BioPython 1.71. Am I missing something or is there really an issue with seqmagick. Kind regards, Andreas.