Learn R Programming

⚠️There's a newer version (1.2.2) of this package.Take me there.

glossa (version 1.2.1)

User-Friendly 'shiny' App for Bayesian Species Distribution Models

Description

A user-friendly 'shiny' application for Bayesian machine learning analysis of marine species distributions. GLOSSA (Global Ocean Species Spatio-temporal Analysis) uses Bayesian Additive Regression Trees (BART; Chipman, George, and McCulloch (2010) ) to model species distributions with intuitive workflows for data upload, processing, model fitting, and result visualization. It supports presence-absence and presence-only data (with pseudo-absence generation), spatial thinning, cross-validation, and scenario-based projections. GLOSSA is designed to facilitate ecological research by providing easy-to-use tools for analyzing and visualizing marine species distributions across different spatial and temporal scales.

Copy Link

Version

Install

install.packages('glossa')

Monthly Downloads

499

Version

1.2.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jorge Mestre-Tomás

Last Published

June 20th, 2025

Functions in glossa (1.2.1)

generate_pa_target_group

Generate Pseudo-Absences Using Target-Group Background
generate_prediction_plot

Generate Prediction Plot
glossa_analysis

Main Analysis Function for GLOSSA Package
fit_bart_model

Fit a BART Model Using Environmental Covariate Layers
generate_pa_buffer_out

Generate Pseudo-Absences Using Buffer-Out Strategy
generate_pa_random

Generate Random Pseudo-Absences
glossa_export

Export Glossa Model Results
validate_layers_zip

Validate Layers Zip
remove_duplicate_points

Remove Duplicated Points from a Dataframe
layer_mask

Apply Polygon Mask to Raster Layers
remove_points_polygon

Remove Points Inside or Outside a Polygon
plot_cv_folds_points

Plot cross-validation fold assignments
misClassError

Misclassification Error
generate_pseudo_absences

Generate Pseudo-Absence Points Using Different Methods Based on Presence Points, Covariates, and Study Area Polygon
invert_polygon

Invert a Polygon
read_extent_polygon

Read and Validate Extent Polygon
getFprTpr

Compute specificity and sensitivity
validate_pa_fit_time

Validate Match Between Presence/Absence Files and Fit Layers
plot_cv_metrics

Plot cross-validation metrics
sensitivity

Calculate the sensitivity for a given logit model
sparkvalueBox

Create a Sparkline Value Box
predict_bart

Make Predictions Using a BART Model
read_presences_absences_csv

Read and validate presences/absences CSV file
pa_optimal_cutoff

Optimal Cutoff for Presence-Absence Prediction
variable_importance

Variable Importance in BART Model
optimalCutoff

Compute the optimal probability cutoff score
validate_fit_projection_layers

Validate Fit and Projection Layers
specificity

Calculate the specificity for a given logit model
read_layers_zip

Load Covariate Layers from ZIP Files
response_curve_bart

Calculate Response Curve Using BART Model
youdensIndex

Calculate Youden's index
run_glossa

Run GLOSSA Shiny App
downloadActionButton

Create a Download Action Button
cross_validate_model

Cross-validation for BART model
extract_noNA_cov_values

Extract Non-NA Covariate Values
evaluation_metrics

Evaluation metrics for model predictions
create_coords_layer

Create Geographic Coordinate Layers
export_plot_ui

Create UI for Export Plot Button
buffer_polygon

Enlarge/Buffer a Polygon
clean_coordinates

Clean Coordinates of Presence/Absence Data
contBoyce

Continuous Boyce Index (CBI) with weighting
export_plot_server

Server Logic for Export Plot Functionality
file_input_area_server

Server-side Logic for Custom File Input
file_input_area_ui

Custom File Input UI
generate_cv_folds

Generate cross-validation folds
get_covariate_names

Get Covariate Names