data(thermo)
## count amino acids in a sequence
aminoacids("GGSGG")
aminoacids("WhatAmIMadeOf?")
## count nucleobases in a sequence
nucleicacids("ACCGGGTTT")
# the DNA complement of that sequence
nucleicacids("ACCGGGTTT",comp="DNA")
# the RNA complement of the DNA complement
n <- nucleicacids("ACCGGGTTT",comp="DNA",comp2="RNA")
# the formula of the RNA complement
nucleicacids(n,type="RNA")
Run the code above in your browser using DataLab