lenSequences: Length of sequences in a given fasta file

Description Usage Arguments Value Examples

View source: R/observed_wrapper.R

Description

The function returns a vector containing the lengths of each sequence contained in a set of sequences. Sequences containing 'N' or 'n' are skipped from the analysis and are set to length zero.

Usage

1

Arguments

seqs

A DNAStringSet object

Value

A vector containing the lengths of each individual sequences

Examples

1
2
3
4
5
6
# Load sequences
file = system.file("extdata", "seq.fasta", package = "motifcounter")
seqs = Biostrings::readDNAStringSet(file)

# Retrieve sequence lengths
motifcounter:::lenSequences(seqs)

motifcounter documentation built on Nov. 8, 2020, 5:44 p.m.