unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ben Woodcroft <b.woodcroft@uq.edu.au>
To: Mark H Weaver <mhw@netris.org>
Cc: guix-devel@gnu.org, Alex Kost <alezost@gmail.com>
Subject: Re: [PATCH] Add FastTree
Date: Sun, 21 Jun 2015 16:52:27 +1000	[thread overview]
Message-ID: <55865F2B.7010007@uq.edu.au> (raw)
In-Reply-To: <878ubdad2b.fsf@netris.org>

[-- Attachment #1: Type: text/plain, Size: 755 bytes --]

Another patch attached, with the only difference being the brackets not 
on a new line.

On 21/06/15 14:41, Mark H Weaver wrote:
> Is there any reason to build the single-threaded version?  Maybe it
> would be better to omit it, and call the multi-threaded version
> FastTree.  What do you think?
I considered this. I have only ever used the multithreaded version, but 
the one advantage of the single-threaded mode is that it is 
deterministic as I understand, where the multi-threaded version is not. 
 From the webpage:

 > FastTreeMP will not give exactly the same results as FastTree because 
the top-hits heuristics become non-deterministic

Ubuntu has separate fasttree and fasttreeMP for reference.

Thanks for the comments and encouragement.
ben

[-- Attachment #2: 0001-gnu-Add-fasttree.patch --]
[-- Type: text/x-patch, Size: 3413 bytes --]

From 1b7afa92668a2b4e7f759ab752868aa9b782713d Mon Sep 17 00:00:00 2001
From: Ben Woodcroft <donttrustben@gmail.com>
Date: Sun, 21 Jun 2015 16:31:27 +1000
Subject: [PATCH] gnu: Add fasttree.

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

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 12c9175..8dfaff3 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -780,6 +780,65 @@ analysis (from RNA-Seq), transcription factor binding quantification in
 ChIP-Seq, and analysis of metagenomic data.")
     (license license:artistic2.0)))
 
+(define-public fasttree
+  (package
+   (name "fasttree")
+   (version "2.1.8")
+   (source (origin
+             (method url-fetch)
+             (uri (string-append
+                   "http://www.microbesonline.org/fasttree/FastTree-"
+                   version ".c"))
+             (sha256
+              (base32
+               "0dzqc9vr9iiiw21y159xfjl2z90vw0y7r4x6456pcaxiy5hd2wmi"))))
+   (build-system gnu-build-system)
+   (arguments
+    `(#:tests? #f ; no "check" target
+      #:phases
+      (modify-phases %standard-phases
+        (delete 'unpack)
+        (delete 'configure)
+        (replace 'build
+                 (lambda* (#:key source #:allow-other-keys)
+                   (and (zero? (system* "gcc"
+                                        "-O3"
+                                        "-finline-functions"
+                                        "-funroll-loops"
+                                        "-Wall"
+                                        "-o"
+                                        "FastTree"
+                                        source
+                                        "-lm"))
+                        (zero? (system* "gcc"
+                                        "-DOPENMP"
+                                        "-fopenmp"
+                                        "-O3"
+                                        "-finline-functions"
+                                        "-funroll-loops"
+                                        "-Wall"
+                                        "-o"
+                                        "FastTreeMP"
+                                        source
+                                        "-lm")))))
+        (replace 'install
+                 (lambda* (#:key outputs #:allow-other-keys)
+                   (let ((bin (string-append (assoc-ref outputs "out")
+                                             "/bin")))
+                     (mkdir-p bin)
+                     (copy-file "FastTree"
+                                (string-append bin "/FastTree"))
+                     (copy-file "FastTreeMP"
+                                (string-append bin "/FastTreeMP"))
+                     #t))))))
+   (home-page "http://www.microbesonline.org/fasttree")
+   (synopsis "Infers approximately-maximum-likelihood phylogenetic trees")
+   (description
+    "FastTree can handle alignments with up to a million of sequences in a
+reasonable amount of time and memory.  For large alignments, FastTree is
+100-1,000 times faster than PhyML 3.0 or RAxML 7.")
+   (license license:gpl2+)))
+
 (define-public fastx-toolkit
   (package
     (name "fastx-toolkit")
-- 
2.1.4


  reply	other threads:[~2015-06-21  6:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-19  7:24 [PATCH] Add FastTree Ben Woodcroft
2015-06-19 10:13 ` Alex Kost
2015-06-19 22:30   ` Ben Woodcroft
2015-06-20  5:32     ` Ben Woodcroft
2015-06-20 17:17       ` Mark H Weaver
2015-06-20 23:12         ` Ben Woodcroft
2015-06-21  4:41           ` Mark H Weaver
2015-06-21  6:52             ` Ben Woodcroft [this message]
2015-06-21  7:32               ` Mark H Weaver

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=55865F2B.7010007@uq.edu.au \
    --to=b.woodcroft@uq.edu.au \
    --cc=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=mhw@netris.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).