We will now do some basic analysis on DNA sequences. We will work with FASTA files and do some manipulation, such as reverse complementing or transcription. As with the previous recipe, we will use Biopython, which you installed in Chapter 1, Python and the SurroundingSoftware Ecology. These two recipes provide you with the necessary introductory building blocks with which we will perform all the modern NGS analysis and then genome processing in this and the next chapter, Chapter 3, Working with Genomes.
If you are using Jupyter Notebook, then open Chapter02/Basic_Sequence_Processing.ipynb
. If not, you will need to download a FASTA sequence. We will use the human Lactase (LCT) gene as an example; you can get this using your knowledge from the previous recipe, by using the Entrez
research interface:
from Bio import Entrez, SeqIO Entrez.email = "[email protected]" hdl = Entrez.efetch(db='nucleotide', id=['NM_002299'], rettype='fasta') # Lactase gene...