From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH] Add SortMeRNA. Date: Fri, 22 Jan 2016 15:35:56 -0500 Message-ID: <20160122203556.GA27665@jasmine> References: <56A21CC6.3010906@uq.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMiR3-0007o9-DQ for guix-devel@gnu.org; Fri, 22 Jan 2016 15:35:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMiR0-0000N0-7I for guix-devel@gnu.org; Fri, 22 Jan 2016 15:35:57 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58054) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMiR0-0000Ml-3U for guix-devel@gnu.org; Fri, 22 Jan 2016 15:35:54 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id EC20121907 for ; Fri, 22 Jan 2016 15:35:53 -0500 (EST) Content-Disposition: inline In-Reply-To: <56A21CC6.3010906@uq.edu.au> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ben Woodcroft Cc: "guix-devel@gnu.org" On Fri, Jan 22, 2016 at 10:12:54PM +1000, Ben Woodcroft wrote: > Thanks in advance as usual. > From 448c2435e50d9d860f1153934058effa42fc6495 Mon Sep 17 00:00:00 2001 > From: Ben Woodcroft > Date: Sat, 16 Jan 2016 13:33:08 +1000 > Subject: [PATCH] gnu: Add sortmerna. > > * gnu/packages/bioinformatics.scm (sortmerna): New variable. > --- > gnu/packages/bioinformatics.scm | 39 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm > index e579afe..e170ff7 100644 > --- a/gnu/packages/bioinformatics.scm > +++ b/gnu/packages/bioinformatics.scm > @@ -3016,6 +3016,45 @@ optimized for modern read lengths of 100 bases or higher, and takes advantage > of these reads to align data quickly through a hash-based indexing scheme.") > (license license:asl2.0))) > > +(define-public sortmerna > + (package > + (name "sortmerna") > + (version "2.0") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "https://github.com/biocore/sortmerna/archive/" > + version ".tar.gz")) > + (file-name (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1670a92x1vvkacnvgr2i5xac3ls6lp4pc3n0bccnmllsnymggcf0")))) > + (build-system gnu-build-system) > + (arguments > + `(#:phases > + (modify-phases %standard-phases My sense of Scheme style is still pretty weak but shouldn't the above line move one character to the right (along with the remainder of arguments)? > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (bin (string-append out "/bin")) > + (share (string-append out "/share/sortmerna/rRNA_databases"))) > + (install-file "sortmerna" bin) > + (install-file "indexdb_rna" bin) > + (for-each (lambda (file) > + (install-file file share)) > + (find-files "rRNA_databases" ".*fasta")) > + #t)))))) > + (home-page "http://bioinfo.lifl.fr/RNA/sortmerna") > + (synopsis "Biological sequence analysis tool for NGS reads") Does it make sense to explain the "NGS" acronym anywhere? > + (description > + "SortMeRNA is a biological sequence analysis tool for filtering, mapping > +and operational taxonomic unit (OTU) picking next generation sequencing reads. Does this sentence make more sense with "of" inserted between "picking" and "next"? > +The core algorithm is based on approximate seeds and allows for fast and > +sensitive analyses of nucleotide sequences. The main application of SortMeRNA > +is filtering rRNA from metatranscriptomic data.") > + (license license:lgpl3))) > + > (define-public star > (package > (name "star") > -- > 2.6.3 >