get_genome_id_from_genome_seq {avidaR} | R Documentation |
Get genome from genome sequence
Description
Get the genome of a digital organism from the linear string of letters representing the instruction codes that make up its genome.
Usage
get_genome_id_from_genome_seq(genome_seq, triplestore)
Arguments
genome_seq |
String of letters or a list of strings |
triplestore |
Object of class triplestore_access which manages database access. |
Value
Data frame. Columns: "genome_id" "genome_seq"
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"
)
# Get sequence for genome_1
sequence <- get_genome_seq_from_genome_id(
genome_id = 1,
triplestore = avidaDB
)$genome_seq[1]
# Get genome id from sequence
get_genome_id_from_genome_seq(
genome_seq = sequence,
triplestore = avidaDB
)
[Package avidaR version 1.2.1 Index]