Opossum.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Opossum 作者: BSGOxford 项目源码 文件源码
def ReadCigarLength(cigar, k=100) :

    if k < len(cigar) :
        cigarlist = cigar[:(k+1)]
    else :
        cigarlist = cigar

    l = sum([c[1] for c in cigarlist])

    return l


# Input cigar and pos denoting index within a cigar transformed into a string sequence.
# Return what is the index in the original cigar and how many extra positions from the beginning
# of this index is the current position.
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号