get_genome_id_from_transcriptome_id {avidaR}R Documentation

Get genome from transcriptome

Description

Get the genome of a digital organism that executes a specific transcriptome for a list of seeds used for starting the pseudo-random number generator (i.e., a set of environments).

Usage

get_genome_id_from_transcriptome_id(
  transcriptome_id,
  seed_id = FALSE,
  genome_seq = FALSE,
  triplestore
)

Arguments

transcriptome_id

Integer or a list of integer values.

seed_id

Integer (from 1 to 1000), a vector of integer values, or a logical value. This integer is used for starting the pseudo-random number generator that represents the environment experiencing a digital organism. If a logical value is used, TRUE returns data found in all environments and FALSE (by default) returns only distinct data regardless of the seed.

genome_seq

Logical value (TRUE/FALSE) to show/hide this column ("FALSE" by default).

triplestore

Object of class triplestore_access which manages database access.

Value

Data frame. Columns: "seed_id" (optional), "transcriptome_id", "genome_seq" (optional).

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 transcriptome
get_genome_id_from_transcriptome_id(
  transcriptome_id = 1,
  triplestore = avidaDB
)

# More than one transcriptome
get_genome_id_from_transcriptome_id(
  transcriptome_id = c(1, 2, 3),
  genome_seq = TRUE,
  triplestore = avidaDB
)

# At seed_1 and seed_2
get_genome_id_from_transcriptome_id(
  transcriptome_id = 1,
  seed_id = c(1, 2),
  triplestore = avidaDB
)


[Package avidaR version 1.2.1 Index]