lenSequences {motifcounter}R Documentation

Length of sequences in a given fasta file

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

lenSequences(seqs)

Arguments

seqs

A DNAStringSet object

Value

A vector containing the lengths of each individual sequences

Examples


# Load sequences
file = system.file("extdata", "seq.fasta", package = "motifcounter")
seqs = Biostrings::readDNAStringSet(file)

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


[Package motifcounter version 1.10.0 Index]