Length of Genome
length
gives the length of a genome
## S3 method for class 'Rcpp_Genome' length(x)
x
: A genome object initialized with initializeGenomeObject
.returns the number of genes in a genome
genome_file <- system.file("extdata", "genome.fasta", package = "AnaCoDa") ## reading genome genome <- initializeGenomeObject(file = genome_file) length(genome) # 10