Rosalind第79题:Genome Assembly Using Reads

Problem

directed cycle is simply a cycle in a directed graph in which the head of one edge is equal to the tail of the next (so that every edge in the cycle is traversed in the same direction).

For a set of DNA strings  and a positive integer , let  denote the collection of all possible -mers of the strings in .

Given: A collection  of (error-free) reads of equal length (not exceeding 50 bp). In this dataset, for some positive integer , the de Bruijn graph  on  consists of exactly two directed cycles.

Return: A cyclic superstring of minimal length containing every read or its reverse complement.

向循环只是有向图中的一个循环,其中一个头部 等于下一个尾部(因此,循环中的每个边都沿相同的方向移动)。

对于一个DNA串  和一个正整数 ,让  表示所有可能的集合 -字符串中的-mers 。

鉴于:一个集合相同长度(不超过50 bp)的(无错)读取数。在这个数据集中,对于一些正整数,de Bruijn图  上 正好由两个定向周期组成

返回值:最小长度的循环超级字符串,包含每个读取或其反向补码。

Sample Dataset

AATCT
TGTAA
GATTA
ACAGA

Sample Output

GATTACA
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值