Learn R Programming

OSMOSE: Modelling Marine Exploited Ecosystems

Overview

OSMOSE is a multispecies and Individual-based model (IBM) which focuses on fish species. This model assumes opportunistic predation based on spatial co-occurrence and size adequacy between a predator and its prey (size-based opportunistic predation). It represents fish individuals grouped into schools, which are characterized by their size, weight, age, taxonomy and geographical location (2D model), and which undergo major processes of fish life cycle (growth, explicit predation, natural and starvation mortalities, reproduction and migration) and fishing exploitation. The model needs basic biological parameters that are often available for a wide range of species, and which can be found in FishBase for instance, and fish spatial distribution data. This package provides tools to build a model and run simulations using the OSMOSE model. See http://www.osmose-model.org/ for more details.

Installation

# The easiest way to get osmose is from CRAN:
install.packages("osmose")

# Or the development version from GitHub:
# install.packages("devtools")
devtools::install_github("osmose-model/osmose")

Documentation and usage

osmose includes several ways to get help and test his functions: demo scripts, vignettes and help files.

Help files

In order to get information about any function, the user just have to ask it by ? command:

# Help file of read_osmose function
?read_osmose

# Help file of available plot methods
?plot.osmose

Demo scripts

The users can test the main functions by using demo scripts (embedded on the package root). In order to access to them, they need to run the demo command:

# Check all the available topics
demo(package = "osmose")

# Select and run one of the topics (e.g. osmose.config_class)
demo(package = "osmose", topic = "osmose.config_class")

Vignettes

Vignettes can be a good simple way to review all the main functions, because they will be showed as a html. The commands to call are pretty similar to demo scripts:

# Check all the available topics
vignette(package = "osmose")

# Select and run one of the topics (e.g. osmose.config_class)
vignette(package = "osmose", topic = "create_run_read")

References

Official website of the model, including info about the development of the project as well as references. Documentation website with information of parameters of java model (the core). Github site where the development code is placed.

Copy Link

Version

Install

install.packages('osmose')

Monthly Downloads

29

Version

3.3.4

License

CeCILL

Maintainer

Nicolas Barrier

Last Published

April 28th, 2020

Functions in osmose (3.3.4)

readOsmoseConfiguration

Reads Osmose configuration files.
osmose_demo

Generates required OSMOSE configuration files to run a demo.
runOsmose

Run an OSMOSE configuration
report.osmose

Report method for osmose objects
osmose-package

OSMOSE: Modelling Marine Exploited Ecosystems
updateCache

Update the cache for the different function
report

Report method
osmose2R

Read OSMOSE outputs into an R object
print.osmose

Print information for an osmose object
summary.osmose.mortalityRate

Title
.osmose.format_data_stacked

Reformat the data into the ggplot2 stacked plot format. It returns a dataframe with specie, time and predation rate in the columns.
plot.osmose

Plot method for osmose objects
readOsmoseFiles

Read Osmose output file
print.summary.osmose

Print the summary informations about Osmose outputs
summary.osmose.dietMatrix

Title
summary.osmose

osmose object summaries
plot.osmose.config

Plot method for osmose.config objects
write.osmose

Write data in osmose format
.read_osmose_ncdf

Function to read osmose netcdf files
.osmose.barplot

Plots a barplot, with xlabels rotated with a 45degree angle
cacheManager

Manage the cache
getVar

Get variable from an osmose-like object.
configureCalibration

Reads calibration parameters from an osmose.config list.
.plot_osmose_dietMatrix

Plots diet matrix
get_var.osmose

get_var method for osmose outputs objects
.read_2D

Generic function to read 2D output files (dietMatrix, sizeSpectrum, etc). If no file is found, it returns NULL.
get_var.osmose.config

get_var method for osmose configuration objects