Opossum.py 文件源码

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

项目:Opossum 作者: BSGOxford 项目源码 文件源码
def CigarIndex(cigar, pos) :

    position = 0
    k = 0 # cigar index
    addpos = pos # extra positions

    for cigartype, cigarlength in cigar :

        position += cigarlength

        if position < pos : 
            k += 1
            addpos -= cigarlength
        else : return k, addpos



# Converts string of cigar symbol characters into the format used by Pysam
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号