length.Rcpp_Genome function

Length of Genome

Length of Genome

length gives the length of a genome

## S3 method for class 'Rcpp_Genome' length(x)

Arguments

  • x: A genome object initialized with initializeGenomeObject.

Returns

returns the number of genes in a genome

Examples

genome_file <- system.file("extdata", "genome.fasta", package = "AnaCoDa") ## reading genome genome <- initializeGenomeObject(file = genome_file) length(genome) # 10