length.Rcpp_Genome: Length of Genome

Description Usage Arguments Value Examples

View source: R/genomeObject.R

Description

length gives the length of a genome

Usage

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

Arguments

x

A genome object initialized with initializeGenomeObject.

Value

returns the number of genes in a genome

Examples

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

AnaCoDa documentation built on Jan. 8, 2021, 2:37 a.m.