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

Rosalind_9. Complementing a Strand of DNA

 Rosalind_9. Complementing a Strand of DNA

# 방법1. 기본 함수 사용 with open('rosalind_revc.txt','r') as handle: for line in handle: seq=line.strip() print(seq) seq=seq[::-1] dir={'A':'T','T':'A','C':'G','G':'C'} rev_comp='' for s in seq: rev_comp+=dir[s] print(rev_comp) 1. sep[::-1]로 sequence를 반대방향으로 읽음 2. dictionary에 상보적 결합하는 염기 매칭 3. rev_comp에 string 형태로 역상보서열 입력 # 방법2. biopython 사용 from Bio.Seq import Seq with open('rosalind_revc.txt','r') as handle: for line in handle: seq=line.strip() print(bioseq.reverses_complement())...

# REVC