Learn R Programming

oligo (version 1.36.1)

basecontent: Sequence Base Contents

Description

Function to compute the amounts of each nucleotide in a sequence.

Usage

basecontent(seq)

Arguments

seq
character vector of length n containg a valid sequence (A/T/C/G)

Value

  • matrix with n rows and 4 columns with the counts for each base.

Examples

Run this code
sequences <- c("ATATATCCCCG", "TTTCCGAGC")
basecontent(sequences)

Run the code above in your browser using DataLab