Florent Angly
and 1 contributors


bc_measure_beta - Measure beta diversity between communities


  bc_measure_beta -input_files   communities.generic      \
                  -beta_type     'hellinger'              \
                  -output_prefix community_beta


This script reads files containing biological communities and calculates how dissimilar they are (beta diversity). The output is a tab-delimited file containing the beta diversity between all pairs of communities. The columns of this file contain the name of the first community, of the second community, and their beta diversity, respectively. Note that some beta diversity metrics are based on relative abundances, and may thus be affected by the weights you provide.


-if <input_files>... | -input_files <input_files>...

Input file containing the communities to manipulate. When providing communities in a format that supports only one community per file (e.g. gaas), you can provide multiple input files.


-bt <beta_types>... | -beta_types <beta_types>...

The types of beta diversity metric to calculate.

* Qualitative metrics: jaccard, sorensen, shared

* Quantitative metrics: 1-norm, 2-norm (euclidean), infinity-norm, hellinger, bray-curtis, morisita-horn, permuted, or maxiphi.

See Bio::Community::Meta::Beta for details about these metrics. Default: beta_types.default

-pf <pair_files>... | -pair_files <pair_files>...

Input files specifying the pairs of communities for which to calculate the beta diversity. Each line of a file of pairs should have the name of two communities, separated by a tab. For each file of pairs, there will be a corresponding output file.

-wf <weight_files>... | -weight_files <weight_files>...

Tab-delimited files containing weights to assign to the community members.

-wa <weight_assign> | -weight_assign <weight_assign>

When using a files of weights, define what to do for community members whose weight is not specified in the weight file (default: weight_assign.default):

* $num : assign to the member the arbitrary weight $num provided

* average : assign to the member the average weight in this file.

* ancestor: go up the taxonomic lineage of the member and assign to it the weight of the first ancestor that has a weight in the weights file. Fall back to the 'average' method if no taxonomic information is available for this member (for example a member with no BLAST hit).

-op <output_prefix> | -output_prefix <output_prefix>

Path and prefix for the output files. Default: output_prefix.default


Mailing Lists

User feedback is an integral part of the evolution of this and other Bioperl modules. Send your comments and suggestions preferably to one of the Bioperl mailing lists.

Your participation is much appreciated.

  bioperl-l@bioperl.org                  - General discussion
  http://bioperl.org/wiki/Mailing_lists  - About the mailing lists


Please direct usage questions or support issues to the mailing list:


rather than to the module maintainer directly. Many experienced and reponsive experts will be able look at the problem and quickly address it. Please include a thorough description of the problem with code and data examples if at all possible.

Reporting Bugs

Report bugs to the Bioperl bug tracking system to help us keep track the bugs and their resolution. Bug reports can be submitted via the web:


AUTHOR - Florent Angly

Email florent.angly@gmail.com