From patchwork Wed Mar 30 09:23:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Isaac X-Patchwork-Id: 38216 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C077927BBEA; Wed, 30 Mar 2022 10:25:06 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 4695D27BBE9 for ; Wed, 30 Mar 2022 10:25:06 +0100 (BST) Received: from localhost ([::1]:58330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZUZd-0008Nt-Cf for patchwork@mira.cbaines.net; Wed, 30 Mar 2022 05:25:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZUYd-0007rI-Mh for guix-patches@gnu.org; Wed, 30 Mar 2022 05:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40612) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZUYd-0000TE-9T for guix-patches@gnu.org; Wed, 30 Mar 2022 05:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZUYd-000149-64 for guix-patches@gnu.org; Wed, 30 Mar 2022 05:24:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54635] [PATCH 5/5] gnu: Add wfmash. Resent-From: Arun Isaac Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Mar 2022 09:24:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54635 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54635@debbugs.gnu.org Cc: Arun Isaac , Efraim Flashner Received: via spool by 54635-submit@debbugs.gnu.org id=B54635.16486322074019 (code B ref 54635); Wed, 30 Mar 2022 09:24:03 +0000 Received: (at 54635) by debbugs.gnu.org; 30 Mar 2022 09:23:27 +0000 Received: from localhost ([127.0.0.1]:34505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZUY3-00012g-BG for submit@debbugs.gnu.org; Wed, 30 Mar 2022 05:23:27 -0400 Received: from mugam.systemreboot.net ([139.59.75.54]:51808) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZUXy-000123-AB for 54635@debbugs.gnu.org; Wed, 30 Mar 2022 05:23:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=default; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qdxbq1pvz3OvQqxf4iO+hoUkerdg5PrwZlSuFuVyO6I=; b=BZHEFGwQhF9qZQPw1YqYyARooR JQtuQroLniIhU3fzX1QA8IHnvxn3QccxjoAi1yQScYKxUgdy9V99DULIbgTaAF2NX3W21bNOFemHe Nz44NlMtPxTKTrbqmSuagJ50/9oQkjp+6w07dFpxx38UHLBWPudkQwhzep9i39RPe/5wHr4++D9jC yTteT+meZBftyVBMh7BNub7v+V7pFfar9+veLFYM+loVeXHyvWax0qIO5/0lVXxGmp+XHHjgF26cC TZ+/WSudNXgw6BrxbEExNyClIRBER4bHyVCF7iMyKBkODRxmWeoC3ZjevBHJWbL0wZcWZvYywW7Tz m3o+1/Ow==; Received: from [192.168.2.1] (port=6582 helo=localhost.localdomain) by systemreboot.net with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1nZUXr-000T5d-9p; Wed, 30 Mar 2022 14:53:15 +0530 From: Arun Isaac Date: Wed, 30 Mar 2022 14:53:13 +0530 Message-Id: <20220330092313.23584-5-arunisaac@systemreboot.net> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220330092313.23584-1-arunisaac@systemreboot.net> References: <20220330092313.23584-1-arunisaac@systemreboot.net> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/bioinformatics.scm (wfmash): New variable. --- gnu/packages/bioinformatics.scm | 51 +++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 2f6f3efb66..500ba4ac60 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -16107,3 +16107,54 @@ (define-public ccwl @acronym{EDSL, Embedded Domain Specific Language} in the Scheme programming language.") (license license:gpl3+))) + +(define-public wfmash + (package + (name "wfmash") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://github.com/ekg/wfmash/releases/download/v" + version "/wfmash-v" version ".tar.gz")) + (sha256 + (base32 + "031cm1arpfckvihb28vlk69mirpnmlag81zcscfba1bac58wvr7c")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Unbundle atomic-queue. + (delete-file-recursively "src/common/atomic_queue") + (substitute* "src/align/include/computeAlignments.hpp" + (("\"common/atomic_queue/atomic_queue.h\"") + "")))))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + ;; Remove compiler flags and checks specific to x86 when not + ;; targeting it. + ,@(if (target-x86-64?) + '() + '((add-after 'unpack 'remove-x86-specific-compile-flags + (lambda _ + (substitute* (find-files "." "CMakeLists\\.txt") + (("-mcx16") "") + (("-march=native") "")) + (substitute* "src/common/dset64.hpp" + (("!__x86_64__") "0"))))))))) + (inputs + (list atomic-queue + gsl + htslib + jemalloc + zlib)) + (synopsis "Base-accurate DNA sequence aligner") + (description "@code{wfmash} is a DNA sequence read mapper based on mash +distances and the wavefront alignment algorithm. It is a fork of MashMap that +implements base-level alignment via the wflign tiled wavefront global +alignment algorithm. It completes MashMap with a high-performance alignment +module capable of computing base-level alignments for very large sequences.") + (home-page "https://github.com/ekg/wfmash") + (license license:expat)))