get_experiment_id_from_organism_id {avidaR} | R Documentation |
Get experiment from organism
Description
Get the experiment identifier and description from which a digital organism is derived.
Usage
get_experiment_id_from_organism_id(
organism_id,
triplestore,
description = FALSE
)
Arguments
organism_id |
Integer or a list of integer values. |
triplestore |
Object of class triplestore_access which manages database access. |
description |
Logical value (TRUE/FALSE) to show/hide the description of the experiment (FALSE by default). |
Value
Data frame. Columns: "organism_id" "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 organism
get_experiment_id_from_organism_id(organism_id = 1, triplestore = avidaDB)
# More than one organism
get_experiment_id_from_organism_id(
organism_id = c(1, 2, 3),
triplestore = avidaDB
)
[Package avidaR version 1.2.1 Index]