How to Mutate a Sequence Using BioPython

preview_player
Показать описание
In this video, I will explain how you can mutate and manipulate a sequence using BioPython.

In Python, we cannot mutate or manipulate a sequence because Python does not allow manipulation of a particular position of string on runtime. Therefore, we cannot change the character of a sequence.

The Bio.Seq module in BioPython provides us with a class MutableSeq(). Using this MutableSeq() class we can take the input from the user and mutate the sequence on run time.

In this code, we are first defining our sequence as a string “ATA”. Then we are using the MutableSeq object to change the variable myDNA and then we are just printing the type of mDNA variable. On execution, you can see the type of myDNA variable.

After this, we are just printing the myDNA string and in the next command, we are changing a position in the string myDNA by assigning the element “O” to the second position of the myDNA sequence. This will replace the “T” in myDNA sequence with “O”.

Then we are just printing the myDNA sequence again. On execution, you will see that the myDNA sequence stored in the string as “ATA” will be changed to “AOA”.

Join BioCode’s Advanced Bioinformatics Scripting in Python, BioPython, R & BioConductor course to intensify your biological programming career by learning through various useful & informative pre-recorded lectures on various biological programming/scripting languages. This course includes:

-Introduction to Python, BioPython, R, Linux & BioConductor
-BLAST Database Searching, Parsing, and Extraction
-Sequence Analysis, Sequence Data Parsing, Sequence Retrieval, and Alignment
-Phylogenetic Analysis
-Processing and Analysis of Biological Datasets
-Data Visualization: ggplot2
-Bioinformatics File Parsing and Writing
-Gene Enrichment Analysis
-MicroArray Analysis: BioConductor
-RNA-Seq Analysis
-Variant Calling

To learn more about biological programming DM us, we can help you get started. BioCode provides an interactive platform to learn biological programming in Python & R, bioinformatics techniques, tools, databases, and biological data analysis in a cooperative manner covering both theoretical and practical aspects of computational biology topics. BioCode provides you with videos regarding every topic along with exercises. BioCode allows you to learn at your pace according to your schedule. Along with every video, BioCode provides you with transcriptions and PowerPoint presentations regarding that topic. If you have any queries during the lectures, there’s a dedicated section available for you to ask questions from your tutor.

#bioinformatics #computationalbiology #datascience #biology #biotechnology #scripting #coding #molecularbiology #programming #learncode #datavisualization #dataanalysis #drugdesigning #science #evolution #learn #biochemistry #microbiology #zoology #courses #python #immunology #shorts
Рекомендации по теме