Learn R Programming

debar (version 0.1.1)

DNAseq: Build a DNAseq object from a DNA sequence string.

Description

This can optionally include the DNA sequence's corresponding PHRED quality values and a sequencer identifier as well.

Usage

DNAseq(x = character(), name = character(), phred = NULL)

Value

an object of class "coi5p"

Arguments

x

a nucleotide string. Valid characters within the nucleotide string are: a,t,g,c,-,n. The nucleotide string can be input as upper case, but will be automatically converted to lower case.

name

an optional character string. Identifier for the sequence.

phred

an optional character string. The phred score string corresponding to the nucleotide string. If passed then the input phred scores will be modified along with the nucleotides and carried through to the sequence output. Default = NULL.

Examples

Run this code
dat = DNAseq(example_nt_string)
#named DNAseq sequence
dat = DNAseq(example_nt_string, name = "example_seq1")
#components in output DNAseq object:
dat$raw
dat$name

Run the code above in your browser using DataLab