Access data on plant genetic resources from genebanks around the world published on Genesys (< https://www.genesys-pgr.org>). Your use of data is subject to terms and conditions available at < https://www.genesys-pgr.org/content/legal/terms>.
The genesysr
R package provides functions for authentication with Genesys and functions to fetch accession data from https://www.genesys-pgr.org database.
devtools::install_git('https://gitlab.croptrust.org/genesys-pgr/genesysr')
genesysr
library('genesysr') # www.genesys-pgr.orggenesysr::setup_production() # or sandbox.genesys-pgr.orggenesysr::setup_sandbox() # or customgenesysr::setup(server = "http://localhost:8080", client_id = "...", client_secret = "...")
The package is configured with default Genesys R client credentials that require user authentication:
# Setupgenesysr::setup_production() # Open Genesys web page in browser and get verifier codegenesysr::user_login()
Accessing Genesys without user interaction requires that a client is registered on Genesys with client credentials grant. Contact [email protected] for assistance.
# Setuplibrary('genesysr')genesysr::setup(server = "https://www.genesys-pgr.org", client_id = "[email protected]", client_secret = "your-private-secret") # Obtain access tokensgenesysr::client_login()
filters <- mcpd_filter(ORIGCTY = c("DEU", "SVN"))accessions <- genesysr::fetch_accessions(filters)
First version of the Genesys API client for R is released.