Learn R Programming

microseq (version 2.1.5)

orfLength: Length of ORF

Description

Computing the lengths of all ORFs in an orf.table.

Usage

orfLength(orf.tbl, aa = FALSE)

Value

A vector of integers.

Arguments

orf.tbl

A tibble with the nine columns of the GFF-format (see findOrfs).

aa

Logical, length in amino acids instead of bases.

Author

Lars Snipen and Kristian Hovde Liland.

Details

Computes the length of an ORF in bases, including the stop codon. However, if aa = TRUE, then the length is in amino acids after translation. This aa-length is the base-length divided by 3 and minus 1, unless the ORF is truncated and lacks a stop codon.

See Also

findOrfs.

Examples

Run this code
# See the example in the Help-file for findOrfs.

Run the code above in your browser using DataLab