guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add Jellyfish.


From: Ben Woodcroft
Subject: Re: [PATCH] Add Jellyfish.
Date: Sat, 19 Dec 2015 09:25:23 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0

Hi Ricardo,

On 19/12/15 04:19, Eric Bavier wrote:
On 2015-12-18 17:42, Ricardo Wurmus wrote:
* gnu/packages/bioinformatics.scm (jellyfish): New variable.
[...]
+    (native-inputs
+     `(("bc" ,bc)
+       ("time" ,time)
+       ("gunzip" ,gzip)))

gzip is an implicit input of gnu-build-system, so could it be left out?
My testing confirms this.

But would it be possible to include the scripting language bindings, something along these lines?

+    (arguments
+     `(#:configure-flags '("--enable-ruby-binding"
+                           "--enable-python-binding"
+                           "--enable-perl-binding")
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'set-SHELL-variable
+           (lambda _
+             ;; generator_manager.hpp either uses /bin/sh or $SHELL
+             ;; to run tests.
+             (setenv "SHELL" (which "bash"))
+             #t)))))
+    (native-inputs
+     `(("bc" ,bc)
+       ("time" ,time)
+       ("ruby" ,ruby)
+       ("python" ,python-2)
+       ("perl" ,perl)))

Currently the perl tests fail for reasons I don't have time to investigate, and perhaps some search paths need to be exported too.

I did find the time to confirm that the most important part of this program works though:

sh-4.3# jellyfish jf
                   .......
          ..........      .....
       ....                   ....
      ..     /-+       +---\     ...
      .     /--|       +----\      ...
     ..                              ...
     .                                 .
     ..      +----------------+         .
      .      |. AAGATGGAGCGC .|         ..
      .      |---.        .--/           .
     ..          \--------/     .        .
     .     .            ..     ..        .
     .    ... .....   .....    ..        ..
     .   .. . .   .  ..   .   ....        .
     .  ..  . ..   . .    ..  .  .         .
     . ..   .  .   ...     . ..  ..        .
    ....    . ..   ..      ...    ..       .
   .. .     ...     .      ..      ..      .
   . ..      .      .       .       ...    ..
   ...       .      .      ..         ...   .
   .         ..     .      ..           .....
  ____  ____  ._    __   _  _  ____  ____  ___  _   _
 (_  _)( ___)(  )  (  ) ( \/ )( ___)(_  _)/ __)( )_( )
.-_)(   )__)  )(__  )(__ \  /  )__)  _)(_ \__ \ ) _ (
\____) (____)(____)(____)(__) (__)  (____)(___/(_) (_)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]