basecontent {oligo} | R Documentation

## 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

    sequences <- c("ATATATCCCCG", "TTTCCGAGC")
    basecontent(sequences)

[Package oligo version 1.8.3 Index]