Partial preview of the text
Download Introduction to Python Programming Language and Installation of Anaconda Python Distribution and more Lecture notes Computational Biology in PDF only on Docsity!
Exploring Python What's in this section? In this section we will overview the python programming language, and how to install the Anaconda Python distribution. We will then cover how to use python like a calculator and apply that to estimate how large of a colony a single bacterium would produce after two weeks of growth without resource limitation. To complete this section you will need: ¢ Acomputer with a recent Mac OSX, Windows, or Linux operating system installed ¢ The capability to install software onto your computer (e.g. administrative permissions) ¢ Aworking internet connection Overview of the python programming language Many programming languages including Python, the R statistical programming language, C, and Java are commonly used in Bioinformatics research. This project introduces bioinformatics research using python. This general-purpose programming language was created by Guido van Rossum and first released in 1991. It runs on Windows, Mac OSX and Linux. If you are just getting started with coding, python is an excellent language to learn. If you are already experienced with other programming languages, you will find much that is familiar. So what makes distinguishes these different languages? One way programming languages are distinguished is by how they fall into certain common categories. Python, for example, is an interpreted, high-level, general-purpose, dynamically-typed programming language. Let's unpack what those terms mean in order to better understand python. interpreted. Python is described as an interpreted language. This means that python itself is a program on your computer. When you write a python script, that script is simply a text file. By running the python program on your text file, you can tell it to do all sorts of things - run calculations on a genome, generate a graph, etc. This is in contrast to compiled languages like C. In those languages, a compiler converts your code into a runnable program. Generally, compiled languages can run faster than interpreted languages. However, being able to rapidly test each version of your script without an extra compiling step can make developing new programs faster. Folks sometimes refer to this as a tradeoff between development time (time spent writing your code) and run time (time the computer spends actually running your code). In many scientific applications, where the number of users is small and new code must be continuously developed, development time is very long compared to run time, and therefore interpreted languages are widely used. (It should also be noted that there are ways to partially