all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#33032] [PATCH] gnu: update python-biopython to 1.72
@ 2018-10-13  3:49 Brett Gilio
  2018-10-21 21:40 ` Ludovic Courtès
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Brett Gilio @ 2018-10-13  3:49 UTC (permalink / raw)
  To: 33032

---
 gnu/packages/bioinformatics.scm | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 91bb94c54..2f59211ab 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -12,6 +12,7 @@
 ;;; Copyright © 2018 Joshua Sierles, Nextjournal <joshua@nextjournal.com>
 ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
 ;;; Copyright © 2018 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
+;;; Copyright © 2018 Brett Gilio <brettg@posteo.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -732,14 +733,14 @@ provide a coordinated and extensible framework to do computational biology.")
 (define-public python-biopython
   (package
     (name "python-biopython")
-    (version "1.70")
+    (version "1.72")
     (source (origin
               (method url-fetch)
               ;; use PyPi rather than biopython.org to ease updating
               (uri (pypi-uri "biopython" version))
               (sha256
                (base32
-                "0nz4n9d2y2dg849gn1z0vjlkwcpzzkzy3fij7x94a6ixy2c54z2a"))))
+                "18p5dk9hdjq1p8sz3fgld0yajsdf0bb28gbv4rk0rfdd8cj4jsxb"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#33032] [PATCH] gnu: update python-biopython to 1.72
  2018-10-13  3:49 [bug#33032] [PATCH] gnu: update python-biopython to 1.72 Brett Gilio
@ 2018-10-21 21:40 ` Ludovic Courtès
  2020-09-05 20:36 ` [bug#33032] Update Andreas Enge
  2022-04-07 12:03 ` bug#33032: [PATCH] gnu: update python-biopython to 1.72 zimoun
  2 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2018-10-21 21:40 UTC (permalink / raw)
  To: Brett Gilio; +Cc: 33032

Hi Brett,

Brett Gilio <brettg@posteo.net> skribis:

> ---
>  gnu/packages/bioinformatics.scm | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

[...]

>      (name "python-biopython")
> -    (version "1.70")
> +    (version "1.72")

I applied the patch and built tried to build the packages that depend on
it, as returned by:

  guix refresh -l python-biopython python2-biopython

Unfortunately that triggers a test failure in ‘seqmagic’ (I didn’t see
whether others are failing):

--8<---------------cut here---------------start------------->8---
ERROR: test_dna_protein_nogap_stop (seqmagick.test.test_transform.TranslateTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-seqmagick-0.7.0.drv-0/seqmagick-0.7.0/seqmagick/test/test_transform.py", line 513, in test_dna_protein_nogap_stop
    self.assertEqual(expected, [str(i.seq) for i in actual])
  File "/tmp/guix-build-seqmagick-0.7.0.drv-0/seqmagick-0.7.0/seqmagick/test/test_transform.py", line 513, in <listcomp>
    self.assertEqual(expected, [str(i.seq) for i in actual])
  File "/tmp/guix-build-seqmagick-0.7.0.drv-0/seqmagick-0.7.0/seqmagick/transform.py", line 703, in translate
    protein = seq.translate(table, to_stop=to_stop)
  File "/gnu/store/ng8rrazi7kwchsmnhmhkjdfgjsv3lngv-python-biopython-1.72/lib/python3.6/site-packages/Bio/Seq.py", line 1163, in translate
    cds, gap=gap)
  File "/gnu/store/ng8rrazi7kwchsmnhmhkjdfgjsv3lngv-python-biopython-1.72/lib/python3.6/site-packages/Bio/Seq.py", line 2543, in _translate_str
    dual_coding = [c for c in stop_codons if c in forward_table]
  File "/gnu/store/ng8rrazi7kwchsmnhmhkjdfgjsv3lngv-python-biopython-1.72/lib/python3.6/site-packages/Bio/Seq.py", line 2543, in <listcomp>
    dual_coding = [c for c in stop_codons if c in forward_table]
  File "/tmp/guix-build-seqmagick-0.7.0.drv-0/seqmagick-0.7.0/seqmagick/transform.py", line 663, in __getitem__
    elif '-' in codon:
TypeError: argument of type 'int' is not iterable
-------------------- >> begin captured logging << --------------------
root: INFO: Applying translation generator: operation to perform is dna2proteinstop.
--------------------- >> end captured logging << ---------------------

----------------------------------------------------------------------
Ran 164 tests in 1.530s

FAILED (errors=7, skipped=7)
Test failed: <unittest.runner.TextTestResult run=164 errors=7 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=164 errors=7 failures=0>
Backtrace:
           5 (primitive-load "/gnu/store/hg9qrk8cr2aw2y4ylxdcnlvpb3y…")
In ice-9/eval.scm:
   191:35  4 (_ _)
In srfi/srfi-1.scm:
    640:9  3 (for-each #<procedure 94c140 at /gnu/store/5sy3815dpjc…> …)
In /gnu/store/5sy3815dpjcvxhssaba6g2ilxm29va9n-module-import/guix/build/gnu-build-system.scm:
   799:31  2 (_ _)
In /gnu/store/5sy3815dpjcvxhssaba6g2ilxm29va9n-module-import/guix/build/python-build-system.scm:
    142:8  1 (check #:tests? _ #:test-target _ #:use-setuptools? _)
In /gnu/store/5sy3815dpjcvxhssaba6g2ilxm29va9n-module-import/guix/build/utils.scm:
    616:6  0 (invoke _ . _)

/gnu/store/5sy3815dpjcvxhssaba6g2ilxm29va9n-module-import/guix/build/utils.scm:616:6: In procedure invoke:
Throw to key `srfi-34' with args `(#<condition &invoke-error [program: "python" arguments: ("-c" "import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test") exit-status: 1 term-signal: #f stop-signal: #f] 99fec0>)'.
builder for `/gnu/store/a6zljh5pn0agm0rdf8bhx7c8hk9hia1d-seqmagick-0.7.0.drv' failed with exit code 1
--8<---------------cut here---------------end--------------->8---

Could you take a look?

Thank you!

Ludo’.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#33032] Update
  2018-10-13  3:49 [bug#33032] [PATCH] gnu: update python-biopython to 1.72 Brett Gilio
  2018-10-21 21:40 ` Ludovic Courtès
@ 2020-09-05 20:36 ` Andreas Enge
  2021-09-14  3:32   ` Sarah Morgensen
  2022-04-07 12:03 ` bug#33032: [PATCH] gnu: update python-biopython to 1.72 zimoun
  2 siblings, 1 reply; 5+ messages in thread
From: Andreas Enge @ 2020-09-05 20:36 UTC (permalink / raw)
  To: 33032

Hello,

I just updated seqmagick to 0.8.0.

Then I tried to update python-biopython to the latest version, 1.78. With it,
seqmagick fails to compile with the following message:

mportError: cannot import name 'triefind' from 'Bio' (/gnu/store/9cr6885z39yb5x3pbanva5h9nacmlkvz-python-biopython-1.78/lib/python3.8/site-packages/Bio/__init__.py)

======================================================================
ERROR: Failure: ImportError (Bio.Alphabet has been removed from Biopython. In many cases, the alphabet can simply be ignored and removed from scripts. In a few cases, you may need to specify the ``molecule_type`` as an annotation on a SeqRecord for your script to work correctly. Please see https://biopython.org/wiki/Alphabet for more information.)


Andreas





^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#33032] Update
  2020-09-05 20:36 ` [bug#33032] Update Andreas Enge
@ 2021-09-14  3:32   ` Sarah Morgensen
  0 siblings, 0 replies; 5+ messages in thread
From: Sarah Morgensen @ 2021-09-14  3:32 UTC (permalink / raw)
  To: Andreas Enge; +Cc: 33032

Hello,

Andreas Enge <andreas@enge.fr> writes:

> Hello,
>
> I just updated seqmagick to 0.8.0.
>
> Then I tried to update python-biopython to the latest version, 1.78. With it,
> seqmagick fails to compile with the following message:
>
> mportError: cannot import name 'triefind' from 'Bio'
> (/gnu/store/9cr6885z39yb5x3pbanva5h9nacmlkvz-python-biopython-1.78/lib/python3.8/site-packages/Bio/__init__.py)
>
> ======================================================================
> ERROR: Failure: ImportError (Bio.Alphabet has been removed from Biopython. In
> many cases, the alphabet can simply be ignored and removed from scripts. In a
> few cases, you may need to specify the ``molecule_type`` as an annotation on a
> SeqRecord for your script to work correctly. Please see
> https://biopython.org/wiki/Alphabet for more information.)

I think this may be fixed by updating seqmagick to 0.8.1 (current
release 0.8.4) and packaging its new dependency, pygtrie, which provides
that removed functionality.

--
Sarah




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#33032: [PATCH] gnu: update python-biopython to 1.72
  2018-10-13  3:49 [bug#33032] [PATCH] gnu: update python-biopython to 1.72 Brett Gilio
  2018-10-21 21:40 ` Ludovic Courtès
  2020-09-05 20:36 ` [bug#33032] Update Andreas Enge
@ 2022-04-07 12:03 ` zimoun
  2 siblings, 0 replies; 5+ messages in thread
From: zimoun @ 2022-04-07 12:03 UTC (permalink / raw)
  To: Brett Gilio; +Cc: 33032-done

Hi,

Thank for your contribution.  Currently Guix provides more recent
versions of BioPython.


On Fri, 12 Oct 2018 at 22:49, Brett Gilio <brettg@posteo.net> wrote:

>      (name "python-biopython")
> -    (version "1.70")
> +    (version "1.72")

--8<---------------cut here---------------start------------->8---
$ guix show python-biopython  | recsel -C -p version
version: 1.76
version: 1.73
--8<---------------cut here---------------end--------------->8---

Therefore, closing!


Cheers,
simon




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-07 12:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-13  3:49 [bug#33032] [PATCH] gnu: update python-biopython to 1.72 Brett Gilio
2018-10-21 21:40 ` Ludovic Courtès
2020-09-05 20:36 ` [bug#33032] Update Andreas Enge
2021-09-14  3:32   ` Sarah Morgensen
2022-04-07 12:03 ` bug#33032: [PATCH] gnu: update python-biopython to 1.72 zimoun

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.