Description Usage Arguments Value Examples
This function calculates the conservity of all positions for input sequences and generate a vector contains each position's conservity
1 | conservityTable(seqSet)
|
seqSet |
seqSet A set of aligned sequence read from fasta file |
a vector contains each position's highest frequency
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Example 1 : Create conservity Table for testSeqShort.
data(testSeqShort)
testSeq <- testSeqShort
table <- conservityTable(testSeq)
# You will see a vector containing 37 numbers (max length), these numbers are
# the highest frequency for each position.
table
# Example 2: Create conservity Table for another sequence set, a raw data
# sampleSeq3.txt. This should takes longer time to run.
findpath <- system.file("extdata", "sampleSeq3.txt", package = "conservedPos")
rawSeq <- Biostrings::readBStringSet(findpath,"fasta")
table <- conservityTable(rawSeq)
# Should have 140 numbers(max length of rawSeq), and
# each number is the the highest frequency for each position
table
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.