rmangal
Retrieve and explore data from the ecological interactions database MANGAL.
https://github.com/ropensci/rmangal
Category: Biosphere
Sub Category: Biodiversity Data Access and Management
Keywords from Contributors
rmarkdown blog computational-ecology ecology weather-data biodiversity cites endangered-species trade
Last synced: about 2 hours ago
JSON representation
Repository metadata
Retrieve and explore data from the ecological interactions database MANGAL
- Host: GitHub
- URL: https://github.com/ropensci/rmangal
- Owner: ropensci
- License: other
- Created: 2018-02-01T14:38:05.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2026-01-22T14:39:15.000Z (6 months ago)
- Last Synced: 2026-06-30T04:14:04.724Z (15 days ago)
- Language: R
- Homepage: https://docs.ropensci.org/rmangal
- Size: 7.71 MB
- Stars: 16
- Watchers: 3
- Forks: 8
- Open Issues: 2
- Releases: 3
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codemeta: codemeta.json
README.md
rmangal 📦 - an R Client for the Mangal database
Context
Mangal -- a global ecological interactions database --
serializes ecological interaction matrices into nodes (e.g. taxon, individuals
or population) and interactions (i.e. edges). For each network, Mangal offers
the opportunity to store study context such as the location, sampling
environment, inventory date and information pertaining to the original
publication. For all nodes involved in the ecological networks, Mangal
references unique taxonomic identifiers such as Encyclopedia of Life (EOL),
Catalogue of Life (COL), Global Biodiversity Information Facility (GBIF) etc.
and can extend nodes information to individual traits.
rmangal is an R client to the Mangal database and provides various functions
to explore its content through search functions. It offers methods to retrieve
networks structured as mgNetwork or mgNetworksCollection S3 objects and
methods to convert mgNetwork to other class objects in order to analyze and
visualize networks properties: igraph,
tidygraph, and
ggraph.
Installation
So far, only the development version is available and can be installed via the remotes 📦
R> remotes::install_github("ropensci/rmangal")
R> library("rmangal")
How to use rmangal
There are seven search_*() functions to explore the content of Mangal, for instance search_datasets():
R> mgs <- search_datasets("lagoon")
Found 2 datasets.
Once this first step is achieved, networks found can be retrieved with the get_collection() function.
R> mgn <- get_collection(mgs)
get_collection() returns an object mgNetwork if there is one network
returned, otherwise an object mgNetworkCollection, which is a list of
mgNetwork objects.
R> class(mgn)
[1] "mgNetworksCollection"
R> mgn
── Network Collection ──
6 networks in collection
── Network #86
• Dataset: #22
• Description: Dietary matrix of the Huizache–Caimanero lagoon
• Size: 189 edges, 26 nodes
• Taxonomic IDs coverage for nodes:
ITIS: 81%, BOLD: 81%, EOL: 85%, COL: 81%, GBIF: 0%, NCBI: 85%
• Published in reference # DOI: 10.1016/s0272-7714(02)00410-9
── Network #1104
• Dataset: #53
• Description: Food web of the shallow sublittoral at Cape Ann
• Size: 107 edges, 35 nodes
• Taxonomic IDs coverage for nodes:
ITIS: 77%, BOLD: 71%, EOL: 77%, COL: 74%, GBIF: 3%, NCBI: 71%
• Published in reference # DOI: 10.2307/1948658
── Network #1108
• Dataset: #53
• Description: Food web of the high salt marsh at Cape Ann
• Size: 44 edges, 19 nodes
• Taxonomic IDs coverage for nodes:
ITIS: 58%, BOLD: 53%, EOL: 58%, COL: 53%, GBIF: 11%, NCBI: 53%
• Published in reference # DOI: 10.2307/1948658
── Network #1105
• Dataset: #53
• Description: Food web of the rocky shore at Cape Ann
• Size: 124 edges, 29 nodes
• Taxonomic IDs coverage for nodes:
ITIS: 90%, BOLD: 86%, EOL: 90%, COL: 86%, GBIF: 10%, NCBI: 86%
• Published in reference # DOI: 10.2307/1948658
── Network #1107
• Dataset: #53
• Description: Food web of the low salt marsh at Cape Ann
• Size: 60 edges, 25 nodes
• Taxonomic IDs coverage for nodes:
ITIS: 80%, BOLD: 68%, EOL: 76%, COL: 68%, GBIF: 12%, NCBI: 72%
• Published in reference # DOI: 10.2307/1948658
── Network #1106
• Dataset: #53
• Description: Food web of the mudflat at Cape Ann
• Size: 175 edges, 37 nodes
• Taxonomic IDs coverage for nodes:
ITIS: 86%, BOLD: 84%, EOL: 86%, COL: 84%, GBIF: 3%, NCBI: 84%
• Published in reference # DOI: 10.2307/1948658
igraph and
tidygraph offer powerful features to
analyze networks and rmangal provides functions to convert mgNetwork to
igraph and tbl_graph so that the user can easily benefit from those
packages.
R> ig <- as.igraph(mgn[[1]])
R> class(ig)
[1] "igraph"
R> library(tidygraph)
R> tg <- as_tbl_graph(mgn[[1]])
R> class(tg)
[1] "tbl_graph" "igraph"
📖 Note that the vignette "Get started with
rmangal" will guide
the reader through several examples and provide further details about rmangal features.
Verbosity
Since rmangal version 2.2, the function verbosity is controlled by the option
rmangal.verbose. To quiet all rmangal functions, use:
options(rmangal.verbose = "quiet")
and to switch on the verbosity do:
options(rmangal.verbose = "verbose")
How to publish ecological networks
We are working on that part. The networks publication process will be
facilitated with structured objects and tests suite to maintain data integrity
and quality. Comments and suggestions are welcome, feel free to open issues.
rmangal vs rglobi
Those interested only in pairwise interactions among taxa may consider using
rglobi, an R package that provides an interface to the GloBi
infrastructure. GloBi
provides open access to aggregated interactions from heterogeneous sources. In
contrast, Mangal gives access to the original networks and open the gate to
study ecological networks properties (i.e. connectance, degree etc.) along large
environmental gradients, which wasn't possible using the GloBi infrastructure.
Older versions
- See https://github.com/mangal-interactions/rmangal-v1 for the first version of the client.
- Note that due to changes in the RESTful API, there is no backward compatibility.
Acknowledgment
We are grateful to Noam Ross for acting as an editor during the review process. We also thank Anna Willoughby and Thomas Lin Petersen for reviewing the package. Their comments strongly contributed to improving the quality of rmangal.
Code of conduct
Please note that the rmangal project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Meta
- Get citation information for
rmangalin R doingcitation(package = 'rmangal') - Please report any issues or bugs.
Owner metadata
- Name: rOpenSci
- Login: ropensci
- Email: info@ropensci.org
- Kind: organization
- Description:
- Website: https://ropensci.org/
- Location: Berkeley, CA
- Twitter: rOpenSci
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1200269?v=4
- Repositories: 307
- Last ynced at: 2023-03-10T20:30:59.242Z
- Profile URL: https://github.com/ropensci
GitHub Events
Total
- Delete event: 2
- Pull request event: 2
- Issues event: 5
- Watch event: 2
- Issue comment event: 1
- Push event: 16
- Pull request review comment event: 2
- Pull request review event: 2
- Create event: 2
Last Year
- Delete event: 2
- Pull request event: 2
- Issues event: 5
- Watch event: 1
- Issue comment event: 1
- Push event: 16
- Pull request review comment event: 2
- Pull request review event: 2
- Create event: 2
Committers metadata
Last synced: 3 days ago
Total Commits: 586
Total Committers: 13
Avg Commits per committer: 45.077
Development Distribution Score (DDS): 0.567
Commits in past year: 33
Committers in past year: 2
Avg Commits per committer in past year: 16.5
Development Distribution Score (DDS) in past year: 0.091
| Name | Commits | |
|---|---|---|
| Steve Vissault | s****t@y****r | 254 |
| Gabriel Bergerongit config --global user.email gabriel.bergeron3@usherbrooke.ca | g****u@g****m | 129 |
| Kevin Cazelles | k****e@u****a | 108 |
| Kevin Cazelles | k****s@i****o | 45 |
| Kevin Cazelles | k****z@p****m | 23 |
| svissault | s****t@o****m | 9 |
| Clément VIOLET | 2****t | 6 |
| Gabriel | g****l@D****l | 5 |
| BenMerSci | b****0@i****m | 3 |
| Noam Ross | n****s@g****m | 1 |
| Maëlle Salmon | m****n@y****e | 1 |
| Matthew Emery | me@m****a | 1 |
| rOpenSci Bot | m****t@g****m | 1 |
Committer domains:
- matthewemery.ca: 1
- omnimed.com: 1
- insileco.io: 1
- uoguelph.ca: 1
Issue and Pull Request metadata
Last synced: 6 months ago
Total issues: 65
Total pull requests: 40
Average time to close issues: about 2 months
Average time to close pull requests: 26 days
Total issue authors: 6
Total pull request authors: 6
Average comments per issue: 1.54
Average comments per pull request: 1.38
Merged pull request: 37
Bot issues: 0
Bot pull requests: 0
Past year issues: 2
Past year pull requests: 2
Past year average time to close issues: N/A
Past year average time to close pull requests: about 11 hours
Past year issue authors: 1
Past year pull request authors: 2
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- KevCaz (28)
- SteveViss (25)
- clementviolet (9)
- gabrielbouleau (1)
- Noa164 (1)
- teejclark (1)
Top Pull Request Authors
- KevCaz (22)
- SteveViss (14)
- maelle (1)
- noamross (1)
- audrey-b (1)
- BenMerSci (1)
Top Issue Labels
- enhancement (16)
- bug (15)
- new feature (6)
- documentation (4)
- POST enhancements (3)
- core dev (3)
- rOpenSci - pre-submission (2)
- rOpenSci - review (2)
- question (1)
- Performance (1)
- CRAN build (1)
- api related (1)
Top Pull Request Labels
- enhancement (8)
- documentation (2)
- rOpenSci - review (2)
- new feature (1)
Package metadata
- Total packages: 2
-
Total downloads:
- cran: 321 last-month
- Total dependent packages: 0 (may contain duplicates)
- Total dependent repositories: 1 (may contain duplicates)
- Total versions: 8
- Total maintainers: 1
proxy.golang.org: github.com/ropensci/rmangal
- Homepage:
- Documentation: https://pkg.go.dev/github.com/ropensci/rmangal#section-documentation
- Licenses: other
- Latest release: v2.1.0+incompatible (published over 4 years ago)
- Last Synced: 2026-07-11T16:52:10.476Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.395%
- Average: 5.576%
- Dependent repos count: 5.758%
cran.r-project.org: rmangal
'Mangal' Client
- Homepage: https://docs.ropensci.org/rmangal/
- Documentation: http://cran.r-project.org/web/packages/rmangal/rmangal.pdf
- Licenses: MIT + file LICENSE
- Latest release: 2.2.2 (published 6 months ago)
- Last Synced: 2026-07-11T16:52:09.542Z (3 days ago)
- Versions: 7
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 321 Last month
-
Rankings:
- Forks count: 8.691%
- Stargazers count: 15.092%
- Dependent repos count: 23.796%
- Average: 25.627%
- Dependent packages count: 28.642%
- Downloads: 51.911%
- Maintainers (1)
Dependencies
- httr >= 1.3.1 imports
- igraph >= 1.2.1 imports
- jsonlite >= 1.5 imports
- memoise * imports
- methods * imports
- USAboundaries * suggests
- ggraph >= 2.0.0 suggests
- knitr * suggests
- magrittr * suggests
- mapview * suggests
- rmarkdown * suggests
- sf * suggests
- spelling * suggests
- taxize * suggests
- testthat * suggests
- tibble * suggests
- tidygraph * suggests
- vcr * suggests
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
- actions/checkout v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
Score: 11.232973438580357
