Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

orfLength

Length of ORF


Description

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

Usage

orfLength(orf.tbl, aa = FALSE)

Arguments

orf.tbl

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

aa

Logical, length in amino acids instead of bases.

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.

Value

A vector of integers.

Author(s)

Lars Snipen and Kristian Hovde Liland.

See Also

Examples

# See the example in the Help-file for findOrfs.

microseq

Basic Biological Sequence Handling

v2.1.4
GPL-2
Authors
Lars Snipen, Kristian Hovde Liland
Initial release
2021-01-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.