To start the task of sequence analysis, the first thing we need is a sequence of DNA or protein. Such sequence data can be retrieved either by visiting the database hosting page via a browser or by accessing the data mart form within R via corresponding commands/functions. We had a look at some of the methods in the previous chapter. In this recipe, we introduce some more methods to retrieve a sequence.
Retrieving sequences from databases requires the following:
seqinrlibraries installed and loaded in the R session
To fetch a sequence of the data via R, perform the following steps: