Skip to content

SitePairSampler

Shawn Laffan edited this page Apr 13, 2015 · 5 revisions

Table of contents:

Introduction

Site Pair Sampler is an add-on script for Biodiverse, to sample compositional dissimilarity between pair of sites. It is designed for use with Generalised Dissimilarity Modelling (GDM) or other models of compositional turnover.

It was written by Dan Rosauer to implement analyses for: Dan F. Rosauer, Simon Ferrier, Kristen J. Williams, Glenn Manion, J. Scott Keogh and Shawn W. Laffan. Phylogenetic generalised dissimilarity modelling: a new approach to analysing and predicting spatial turnover in the phylogenetic composition of communities; which is currently in review with the journal Ecography.

Download

It is found in the source code version of Biodiverse under the etc directory. http://code.google.com/p/biodiverse/source/browse/#svn%2Ftrunk%2Fetc%2Fsite_pair_sampler . Until it is released as a separate download you will need to download the full folder using a subversion checkout.

Setup

  • You will need to install one of the source code versions of Biodiverse. See the Installation page.

Running it

  • You will need to copy and edit one of the scripts under the site_pair_sampler/bin folder. Avoid names with spaces in them. Set all the parameters as needed for your analysis.

  • If you save your version of the script to a different folder then you will need to add the site_pair_sampler/lib folder to your PERL5LIB environment variable, or add it as an argument every time you run the script.

  • To run it, open a command prompt and type the following, editing the path and script name to match what you are using:

  perl c:\site_pair_sampler\bin\GDM_Input_sample_params_basic.pl

When run, it calls GD_Modeller.pm and other components of Biodiverse.

  • The output files will be wherever you told the system to put them.

Trouble shooting