Skip to content

Commit

Permalink
Create Clara - Respostas semana 1.py
Browse files Browse the repository at this point in the history
Respostas do desafio Rosalind
  • Loading branch information
ccmt authored Oct 10, 2020
1 parent 11d4947 commit aa27bcc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Clara - Respostas semana 1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

# Counting DNA Nucleotides - http://rosalind.info/problems/dna/
def quantidade_nucleotideo(seq):
#return seq.count("A"), seq.count("C"), seq.count("G"), seq.count("T")
return " ".join(map(str,[seq.count("A"), seq.count("C"), seq.count("G"), seq.count("T")]))

# Transcribing DNA into RNA - http://rosalind.info/problems/rna/
def transcrever_DNA(seq):
return seq.replace('T', 'U')


#print(quantidade_nucleotideo("GATGGAACTTGACTACGTAAATT"))

0 comments on commit aa27bcc

Please sign in to comment.