unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: 35792@debbugs.gnu.org
Subject: [bug#35792] [PATCH 3/7] gnu: Add multichoose.
Date: Sat, 18 May 2019 19:26:36 +0200	[thread overview]
Message-ID: <20190518172640.7165-3-mail@ambrevar.xyz> (raw)
In-Reply-To: <20190518172640.7165-1-mail@ambrevar.xyz>

* gnu/packages/bioinformatics.scm (multichoose): New variable.
---
 gnu/packages/bioinformatics.scm | 36 +++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 1bf33853b0..3ff0f69f5e 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -14899,3 +14899,39 @@ some of the details of opening and jumping in tabix-indexed files.")
       (description "Implementation of the Smith-Waterman algorithm.")
       ;; The licensing terms are unclear: https://github.com/ekg/smithwaterman/issues/9.
       (license (list license:gpl2 license:expat)))))
+
+(define-public multichoose
+  (package
+    (name "multichoose")
+    (version "1.0.3")
+    (source (origin
+      (method git-fetch)
+      (uri (git-reference
+            (url "https://github.com/ekg/multichoose/")
+            (commit (string-append "v" version))))
+      (file-name (git-file-name name version))
+      (sha256
+       (base32 "0ci5fqvmpamwgxvmyd79ygj6n3bnbl3vc7b6h1sxz58186sm3pfs"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("python" ,python-2)
+       ("node" ,node)))
+    (arguments
+     `(#:tests? #f ; There are no tests to run.
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure) ; There is no configure phase.
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((bin (string-append (assoc-ref outputs "out") "/bin")))
+               ;; TODO: There are Python modules for these programs too.
+               (install-file "multichoose" bin)
+               (install-file "multipermute" bin)))))))
+    (home-page "https://github.com/ekg/multichoose")
+    (synopsis "Efficient loopless multiset combination generation algorithm")
+    (description "This library implements an efficient loopless multiset
+combination generation algorithm which is (approximately) described in
+\"Loopless algorithms for generating permutations, combinations, and other
+combinatorial configurations.\", G. Ehrlich - Journal of the ACM (JACM),
+1973. (Algorithm 7.)")
+    (license license:expat)))
-- 
2.21.0

  parent reply	other threads:[~2019-05-18 17:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-18 17:25 [bug#35792] [PATCH 0/7] Package freebayes Pierre Neidhardt
2019-05-18 17:26 ` [bug#35792] [PATCH 1/7] gnu: Add tabixpp Pierre Neidhardt
2019-05-18 17:26   ` [bug#35792] [PATCH 2/7] gnu: Add smithwaterman Pierre Neidhardt
2019-08-08 14:30     ` Ricardo Wurmus
2019-08-08 16:29       ` Efraim Flashner
2019-08-08 16:31         ` Ricardo Wurmus
2019-05-18 17:26   ` Pierre Neidhardt [this message]
2019-05-18 17:26   ` [bug#35792] [PATCH 4/7] gnu: Add fsom Pierre Neidhardt
2019-05-18 17:26   ` [bug#35792] [PATCH 5/7] gnu: Add fastahack Pierre Neidhardt
2019-05-18 17:26   ` [bug#35792] [PATCH 6/7] gnu: Add vcflib Pierre Neidhardt
2019-05-18 17:26   ` [bug#35792] [PATCH 7/7] gnu: Add freebayes Pierre Neidhardt
2019-08-01 14:38     ` Pjotr Prins
2019-08-08 12:20       ` bug#35792: " Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190518172640.7165-3-mail@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=35792@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).