findMaxLen: This function finds the max length of sequence for input...

Description Usage Arguments Value Examples

View source: R/PositionCal.R

Description

This function finds the max length of sequence for input sequence set

Usage

1
findMaxLen(seqSet)

Arguments

seqSet

seqSet A set of aligned sequence read from fasta file

Value

A numeric value of the max length of sequence for seqSet

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Example 1: find the max length of a sequence set retrieved from raw data
findpath <- system.file("extdata", "sampleSeq3.txt", package = "conservedPos")
rawSeq <- Biostrings::readBStringSet(findpath,"fasta")
maxL <- findMaxLen(rawSeq)
maxL # 140

# Example 2: find the max length of a sequence set retrieved from data
data(testSeqShort)
testSeq <- testSeqShort
maxL <- findMaxLen(testSeq)
maxL # 37

hezijin/conservedPos documentation built on Jan. 1, 2021, 3:18 a.m.