convert_sequence: Nucleic acid sequences converter.

View source: R/convert_sequence.R

convert_sequenceR Documentation

Nucleic acid sequences converter.

Description

Obtains de complementary, reverse complementary or the reverse of a DNA/RNA sequence.

Usage

convert_sequence(sequence = NULL, mode = "not specified", nucleic.acid = "DNA")

Arguments

sequence

A string containing the sequence to be converted. By default NULL, it returns an help for the mode.

mode

A string value to define the modality of convertion. Possible options:
- Reverse complement = revComp | RC | rc | reverseComplement
- Reverse = rev | R | r | reverse
- Complement = comp | C | c | complement.
By default "not specified", it returns an help for the mode.

nucleic.acid

A string to define the type of nucleic acid to which the input sequence belongs. Available options "DNA", default value, or "RNA".

Value

It returns a string with the converted sequence.

Examples

convert_sequence(sequence = "AATTTCCCGTCGAT",
                 mode = "reverse",
                 nucleic.acid = "DNA")


sebastian-gregoricchio/Rseb documentation built on May 15, 2024, 5:45 a.m.