find_start_stop_codons: Function to identify potential start and stop codons

Description Usage Arguments Details Examples

View source: R/find_start_stop_codons.R

Description

By Coghlan (2011) A little book of R for bioinformatics. https://a-little-book-of-r-for-bioinformatics.readthedocs.io/en/latest/src/chapter7.html. The functions was originally named findPotentialStartsAndStops().

Usage

1

Arguments

sq

DNA sequence

Details

Searches a DNA sequence using Biostrings::matchPattern(codon, sequence) to look for start and stop codons. Currently only uses the standard genetic code.

Examples

1
2
3
4
5
6
7
# Example sequence from Coghlan 2011
s1 <- "aaaatgcagtaacccatgccc"

# Returns a list with 2 elements
## 1) locations of codons
## 2) The codon
find_start_stop_codons(s1)

brouwern/compbio4all documentation built on Dec. 19, 2021, 11:47 a.m.