Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 1 //
- # Hello World program in Python
- print "Hello World!\n"
- adn='acaagatgcc attgtccccc ggcctcctgc tgctgctgct ctccggggcc acggccaccg'
- a=adn.count('a')
- c=adn.count('c')
- g=adn.count('g')
- t=adn.count('t')
- print(str(a)+" "+str(c)+" "+str(g)+" "+str(t))
- // 2 //
- adn='acaagatgcc attgtccccc ggcctcctgc tgctgctgct ctccggggcc acggccaccg'
- adn2=adn.replace('a','T')
- adn2=adn2.replace('t','A')
- adn2=adn2.replace('g','C')
- adn2=adn2.replace('c','G')
- print(adn2)
- // Aula 4
- http://www.bioinformatics.org/tutorial/1-1.html
- // 6
- rna = ('AUG','GAA','UUC','UCG','CUC')
- lista={'AUG':'M','GAA':'E','UUC':'F','UCG':'S','CUC':'L'}
- for a in rna:
- if a in lista:
- print(lista[a])
- // 8
- fich=open("/home/aluno/Downloads/data.csv","r")
- for linha in fich:
- if ("Drosophila melanogaster" in linha) or ("Drosophila simulans" in linha):
- a=linha.split(',')
- print(a[0])
Advertisement
Add Comment
Please, Sign In to add comment