nanoQC.py 文件源码

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

项目:nanoQC 作者: wdecoster 项目源码 文件源码
def get_bin(fq, sizeRange):
    '''
    Loop over the fastq file
    Extract list of nucleotides and list of quality scores in tuples in list
    Only select those reads of which the length is within the size range
    '''
    logging.info("Extracting nucleotides and quality scores of selected bin.")
    return [(list(rec.seq), list(rec.letter_annotations["phred_quality"]))
            for rec in SeqIO.parse(fq, "fastq") if sizeRange[0] < len(rec) < sizeRange[1]]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号