Description Usage Arguments Examples
Cound words in fasta file
1 |
k |
Word size |
file |
FASTA filename |
text |
FASTA data as character vector |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # Get system FASTA file holding the Agathis dammara chloroplast
# protein seqences
aa_file <- system.file("Agathis_dammara.chloroplast.faa", package=("zwc"))
# Count 1-mers (character frequency)
fasta_wc(aa_file, k=1)
# Count 2-mers
fasta_wc(aa_file, k=2)
# A raw string of text can be given
fasta_wc(k=2, text="AAATTTTTAAATATATATATATATATATATA")
# Or a FASTA file as a string
data(mito_dna)
fasta_wc(k=2, text=mito_dna)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.