with open ('rosalind_dna.txt','r') as handle: for line in handle: seq=line.strip() count={'A':0,'C':0,'G':0,'T':0} for s in seq: if s in count: count[s]+=1 print(count.values()) dictionary 활용해 각 A,T,G,C의 각 염기를 Key로 지정. Sequence에 각 염기가 나올 때마다 Value에 +1...
Rosalind_7. Counting DNA nucleotides에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.