Skip to content

Commit

Permalink
Add MrBayes (#5024)
Browse files Browse the repository at this point in the history
* Add MrBayes

* Work around missing `ssh` and `rsh` on linux docker

* Run `make clean` between mpi/no-mpi builds

* mpirun test needs `allow-run-as-root` flag for docker

* More trying to get mpirun to comply on the docker image

* Something in bioconda chain breaks `test: requires: - conda`

* Pin readline

* Disable `conda inspect` tests

These seem to be broken in the bioconda toolchain setup. Sometimes it
works, sometimes it doesn't.
  • Loading branch information
epruesse authored and bgruening committed Jun 22, 2017
1 parent a408a17 commit ad2e77a
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
27 changes: 27 additions & 0 deletions recipes/mrbayes/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
set -x

cd src
autoconf

# build version with MPI & Beagle
./configure \
--prefix=$PREFIX \
--disable-debug \
--with-beagle=$PREFIX \
--enable-mpi

make -j$CPU_COUNT
make install
make clean
mv $PREFIX/bin/mb{,-mpi}


# build version with Beagle only
./configure \
--prefix=$PREFIX \
--disable-debug \
--with-beagle=$PREFIX

make -j$CPU_COUNT
make install
51 changes: 51 additions & 0 deletions recipes/mrbayes/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{% set name = "MrBayes" %}
{% set version = "3.2.6" %}
{% set sha256 = "f8fea43b5cb5e24a203a2bb233bfe9f6e7f77af48332f8df20085467cc61496d" %}

package:
name: {{ name | lower }}
version: {{ version }}

source:
fn: {{ name | lower }}-{{ version }}.tar.gz
url: https://sourceforge.net/projects/{{ name | lower }}/files/{{ name | lower }}/{{ version }}/{{ name | lower }}-{{ version }}.tar.gz
sha256: {{ sha256 }}

build:
number: 0

requirements:
build:
- gcc # [linux]
- llvm # [osx]
- autoconf
- automake
- readline 6.*
- openmpi
- beagle-lib
run:
- libgcc # [linux]
- readline 6.*
- openmpi
- beagle-lib
test:
# conda inspect rules broken in bioconda toolchain
# requirements:
# - conda
commands:
# - conda inspect linkages -p $PREFIX $PKG_NAME # [linux]
# - conda inspect objects -p $PREFIX $PKG_NAME # [osx]
- echo Version | mb
- echo Version | mpirun -mca plm_rsh_agent true --allow-run-as-root mb-mpi

about:
home: http://mrbayes.sourceforge.net
license: GPLv3
license_family: GPL
license_file: src/gpl.txt
summary: Bayesian Inference of Phylogeny
description: |
MrBayes is a program for Bayesian inference and model choice across a wide
range of phylogenetic and evolutionary models. MrBayes uses Markov chain
Monte Carlo (MCMC) methods to estimate the posterior distribution of model
parameters.

0 comments on commit ad2e77a

Please sign in to comment.