orfLength: Length of ORF

View source: R/orfs.R

orfLengthR Documentation

Length of ORF

Description

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

Usage

orfLength(orf.table, aa = FALSE)

Arguments

orf.table

A GFF-formatted tibble.

aa

Logical, length in amino acids instead of bases.

Details

By default, 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 lengths.

Author(s)

Lars Snipen and Kristian Hovde Liland.

See Also

findOrfs.

Examples

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


microseq documentation built on Aug. 21, 2023, 5:10 p.m.