get_doi_from_experiment_id: Get doi from experiment

View source: R/get_doi_from_experiment_id.R

get_doi_from_experiment_idR Documentation

Get doi from experiment

Description

Get the DOI of the scientific publication that documents the experiment carried out.

Usage

get_doi_from_experiment_id(avida_experiment_id, triplestore)

Arguments

avida_experiment_id

Integer or a list of integer values.

triplestore

Object of class triplestore_access which manages database access.

Value

Data frame. Columns: "doi" "avida_experiment_id"

Examples


# Create triplestore object
avidaDB <- triplestore_access$new()

# Set access options
avidaDB$set_access_options(
  url = "https://graphdb.fortunalab.org",
  user = "public_avida",
  password = "public_avida",
  repository = "avidaDB_test"
)

# Single paper
get_doi_from_experiment_id(
  avida_experiment_id = 1,
  triplestore = avidaDB
)

# More than one experiment
get_doi_from_experiment_id(
  avida_experiment_id = c(1, 2, 4),
  triplestore = avidaDB
)


avidaR documentation built on June 22, 2024, 9:21 a.m.