Skip to the content.

Mosey

mosey system cartoon

What is mosey?

Mosey is an integrated set of tools that allows you to work with large animal movement datasets. Implemented in R and command-line ready, mosey downloads data directly from Movebank and stores it in a relational database. Browse the data on a map, extract environmental data using Google Earth Engine, or access the database in your analysis scripts.

Why use mosey?

Animal movement data are growing so rapidly that traditional approaches to storing and accessing the data are no longer feasible. This is especially true now that ecologists are attempting broad-scale, macroecological analyses using massive movement datasets available on aggregators such as Movebank.

The heart of mosey is a server-less relational database, which means it does not require any special setup to use. It and can store and rapidly access many GB of data. Having all of your data in one database enables you to write summary reports or extract metadata with much greater ease than if the data is stored in multiple csv files.

mosey is also easy to use. Just initialize an empty database

cat $MOSEYDB_SRC/db/create_db.sql | sqlite3 data/mosey.db

Set up your list of studies in studies.csv, and load them from Movebank

$MOSEYDB_SRC/db/load_studies.sh

You now have a movement database that can be accessed from any R script.

Tell me more!

mosey is made up of four integrated projects: mosey_get, mosey_db, mosey_env, and mosey_view

mosey_get

mosey_get implements the movebank api. You can access the raw Movebank entities using a simple R interface instead of forming your own REST calls. mosey_get is the package that allows mosey_db to download movement data.

mosey get cartoon

mosey_db

mosey_db downloads raw data from Movebank using mosey_get. Raw data from movebank has considerable issues and should not be used directly. To address these problems, mosey_db performs extensive data cleaning, then loads the data into an sqlite database. You can then access data from this database using dedicated software such as db browser, or from R using packages such as dbplyr.

mosey db cartoon

mosey_env

mosey_env allows you to associate environmental data to movement tracks. In this sense, it is similar to other (and easier to use) systems such as Env-DATA and STOAT. mosey_env is different for several reasons

mosey env cartoon

mosey_view

mosey_view displays the movement data on a map. Movement data is complex, and it is difficult to explore using static plots. mosey_view allows you to seamlessly browse the data using leaflet and shiny. You can filter the data by individuals, time periods, or color by other attributes.

screenshot