From aa27bccbb52b4762f342a34ef5660573ffd2d278 Mon Sep 17 00:00:00 2001 From: Clara Matos Date: Sat, 10 Oct 2020 12:10:02 -0300 Subject: [PATCH] Create Clara - Respostas semana 1.py Respostas do desafio Rosalind --- Clara - Respostas semana 1.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Clara - Respostas semana 1.py diff --git a/Clara - Respostas semana 1.py b/Clara - Respostas semana 1.py new file mode 100644 index 0000000..a60675f --- /dev/null +++ b/Clara - Respostas semana 1.py @@ -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"))