로딩
요청 처리 중입니다...

Rosalind_16. Consensus and Profile

 Rosalind_16. Consensus and Profile

문제 1. 길이가 같은 여러 서열들이 주어졌을 때, 각 위치에 가장 빈도수가 많은 염기서열을 배치하여 서열을 완성하라. 2.

A,T,G,C의 각 위치에서의 빈도 구하여라 f=open('rosalind_cons.txt','r') data=''.join(f.read().split('\n')).split('>')[1:] sequences=[] for s in data: sequences.append(s[13:]) n=len(sequences[1]) profile_matrix={ 'A':[0]*n, 'C':[0]*n, 'G':[0]*n, 'T':[0]*n} for seq in sequences: for pos,nuc in enumerate(seq): profile_matrix[nuc][pos]+=1 result=[] for pos in range(n): max_count=0 max_nuc=None for nuc in ['A','T','G','C']: count=profile_matrix[n...

# CONS