image thumbnail


version 1.0.0 (3.04 KB) by Francisco de Castro
Retrieve taxonomic info and some traits of a species from WoRMS (World Register of Marine Species)


Updated Tue, 20 Nov 2018 11:01:55 +0000

View License

GETSPECIESTRAITS Taxonomy and traits from WoRMS database.
Data= GetSpeciesTraits(X,varargin)
Ths function uses WoRMS to get taxonomic info and some traits about
a list of species. By default it returns only taxonomic info: AphiaID,
Kingdom, Phylum, Class, Order, Family, Genus, Status and Valid Name.
To return mean length, mean mass, functional group or feeding type use
any combination of:
By defult all are FALSE except 'taxo'.

To supress output to the command window use:
GetSpeciesTraits(X,'verbose',FALSE) default: true.

Input argument X must be a string or a 1-column cell array or table.
Only the 1st column will be used.
Returns a table 'Data' with species names in column 1 and taxonomy and
requested traits in following columns. Length will be in cm and mass in

Cite As

Francisco de Castro (2022). GetSpeciesTraits (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!