-
Finding a Spliced MotifBioinformatics/Rosalind 2019. 6. 19. 14:40
http://rosalind.info/problems/sseq/
ROSALIND | Finding a Spliced Motif
It appears that your browser has JavaScript disabled. Rosalind requires your browser to be JavaScript enabled. Finding a Spliced Motif solved by 3298 2012년 7월 13일 12:00:00 오전 by Rosalind Team Topics: String Algorithms Motifs Are Rarely Contiguous In “Findi
rosalind.info
Bioinformatics Contest 2017의 Qualification Round 3와 사실상 비슷한 문제이다.
관련 포스팅은 https://rafe.tistory.com/11를 보면 된다.
Qualification Round. Problem 3 Introns Detection
DNA원본과 splicing후 조각들의 read로 exon을 재조합하는 문제이다. exon1 - intron1 - exon2 - intron2 - exon3 - intron3 이고 exon1 - exon2 exon2 - exon3 이런식으로 주어지면 exon1 - exon2 - exon3을 구하..
rafe.tistory.com
from util.read import read_fasta seqs = list(map(lambda row: row[1], read_fasta('rosalind_sseq.txt'))) seq = seqs[0] sub_seq = seqs[1] idxs = [] cur_idx = 0 for sub_base in sub_seq: while seq[cur_idx] != sub_base: cur_idx += 1 idxs.append(cur_idx + 1) cur_idx += 1 print(' '.join(map(lambda idx: str(idx), idxs)))
코드가 간단하니 설명은 생략하겠다.
'Bioinformatics > Rosalind' 카테고리의 다른 글
Error Correction in Reads (0) 2019.06.19 k-Mer Composition (0) 2019.06.18 Completing a Tree (0) 2019.06.17 Genome Assembly as Shortest Superstring (0) 2019.06.13 Independent Alleles (0) 2019.06.08 댓글