-->

miércoles, 18 de enero de 2012

Python programming in Mac

Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability. Python claims to combine "remarkable power with very clear syntax", and its standard library is large and comprehensive. Its use of indentation for block delimiters is unique among popular programming languages.
For these reasons is one of the best tools for programing in bioinformatics for beggines because there´s a lot of modules for bioinformatic tools as NumPySciPyBioPython and more. also you can get it typing in your comand line if you already have installed Xcode for mac strongly recomended , if you dont have it download Fink
Python is actually included in Mac OS X, open your terminal and tipe  python to call enviroment:



 
Comand  $ python   will open the enviroment and show installed version in your OS X. for know where is the directory just tipe: 



$ which python
But if your are plannig to move to the latest version you can install it if your have administrator's rights to do this. On a Unix style system this is normally done by:

$ sudo easy_install  biopython
Whit fink you can tipe in terminal line:



$ sudo apt-get install python-biopython
This is the fist program i create in python is for calculate Velocity in enzymatic reaction from  Michaelis–Menten kinetics is one of the simplest and best-known models of enzyme kinetics. It is named after German biochemist Leonor Michaelis and Canadian physician Maud Menten. The model takes the form of an equation describing the rate of enzymatic reactions, by relating reaction rate v to [S], the concentration of a substrate S. Its formula is given by:




CODE:

#! /Usr/bin/python

from math import*

# v= Vmax(S)/Km+(S)

Vmax= float(raw_input('Vmax: '))
S= float(raw_input('S: '))
Km= float(raw_input('Km: '))
Velocity=(Vmax*(S))/(Km+S)

print Velocity

# Author: Alejandro Rendon 

No hay comentarios:

Publicar un comentario