lenSequences {motifcounter} | R Documentation |
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.
lenSequences(seqs)
seqs |
A DNAStringSet object |
A vector containing the lengths of each individual sequences
# Load sequences file = system.file("extdata", "seq.fasta", package = "motifcounter") seqs = Biostrings::readDNAStringSet(file) # Retrieve sequence lengths motifcounter:::lenSequences(seqs)