I am in the process of learning how to work in R with Biostrings
With DNAStringSets (and AAStringSets) it is possible to add descriptors to the sequence using the names function
Thus if you have the sequence AGTCACC, and make this a DNAStringSet you can add a description:
seq <- "AGTCACC" seq_2 <- DNAStringSet(seq) names(seq_2) <- "My example" seq_2
However, if I try this with a DNAString, nothing gets stored
seq_3 <- DNAString(seq) names(seq_3) <- "My example" seq_3
Is there a clever way to add descriptors to a DNAString? Or do I need to work with DNAStringSets?