Skip to content
Browse files

simplify, point to readthedocs page for documentation

  • Loading branch information...
treangen committed Feb 10, 2015
1 parent c24b787 commit 59d2fc70ffd13808a738ccfd332b510befaa9d0b
Showing with 7 additions and 95 deletions.
  1. +7 −95
@@ -1,100 +1,12 @@
![Travis-CI build status]
Parsnp is a command-line-tool for efficient microbial core genome alignment and SNP detection. Parsnp was designed to work in tandem with Gingr, a flexible platform for visualizing genome alignments and phylogenetic trees; both Parsnp and Gingr form part of the Harvest suite :

# Parsnp
- [Harvest project page](
- url:

Rapid bacterial core genome alignment and SNP detection
Parsnp is primarily distributed as a binary for Linux or OS X (see Parsnp link above ). However, the source and build scripts are provided for incompatible platforms or for development purposes.

## Download, install & run (precompiled binary)
CITATION provides details on how to cite Parsnp.

Parsnp is distributed as a precompiled binary that should be devoid of external dependencies (all included in dist). The steps below represent the fastest way to start using the software:
INSTALL provides instructions for building from source and installing.

### On OSX:

1. wget
2. unzip -d parsnp-OSX64.gz

### On Linux:

1. wget
2. unzip -d parsnp-Linux64.gz

### Quick start

parsnp –p <threads> –d <directory of genomes> –r <ref genome>

Output Files:

1) Newick formatted core genome SNP tree: <outdir>/parsnp.tree
2) XMFA format: <outdir>/parsnp.xmfa
3) Gingr input: <outdir>/parsnp.ggr
4) VCF variants: <outdir>/parsnp.vcf

## Build from source

### Important! Prerequisites required for building from source, install these first:

* 64-bit Linux/*nix or OSX (>= v10.7)
* autoconf && automake && libtool
* gcc (>= v4.2.*)
* OpenMP
* Python (>= 2.6.*)
To install from source:
git clone parsnp_src
cd parsnp_src
Before you start, if running OSX Mavericks, OpenMP is not supported via Clang, so you will not be able to build the source. You will need to install OpenMP and build gcc with OpenMP support. This can be accomplished a couple of ways:
* Install Macports, then:
- sudo port install gcc49
- sudo port select gcc mp-gcc49
* (or) Install Homebrew, then:
- brew install gcc49
* (or) Build & install gcc from source with OpenMP
- Download & install gcc 4.9
* (or) Download & install gcc prebuilt binaries with OpenMP support
* Final suggestion: If issues persist, we recommend using the precompiled binary until OpenMP is natively supported by Clang/OSX (likely to be so in Yosemite)
Once OpenMP support is added, the first (required!) step is to build libMUSCLE:
cd muscle
./configure --prefix=`pwd` CXXFLAGS=’-fopenmp’
make install
Then, build Parsnp:
cd ..
make install
Once both installed (to cwd install by default):
export PARSNPDIR=/path/to/parsnp/install
## External software dependencies:
* Muscle 3.8 (included as lib)
* PhiPack (Linux and OSX 64-bit binaries included in distribution)
* FastTree2 (Linux and OSX 64-bit binaries included in distribution)
## Docs
See for full documentation
LICENSE provides licensing information.

0 comments on commit 59d2fc7

Please sign in to comment.
You can’t perform that action at this time.