bio_io.py 文件源码

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

项目:cellranger 作者: 10XGenomics 项目源码 文件源码
def convert_bedGraph_to_bigWig(self, remove_bedGraph=False):
        for profile_id in sorted(self.profiles["Profiles"]):
            bedGraph_file = self.path + profile_id + ".bedGraph"
            bigWig_file = self.path + profile_id + ".bw"
            # TODO: general case - any set of chromosome names/lengths.
            # (use self.profiles["Reference"] to generate chrom.sizes)
            cmd = self.tool_dir + "bedGraphToBigWig " + bedGraph_file + " " + self.tool_dir + "hg19.chrom.sizes " + bigWig_file
            os.system(cmd)
            if remove_bedGraph:
                os.remove(outs_hp_bedGraph[hp])
            # if remove
        # for profile_id
    # convert_bedGraph_to_bigWig
# class CopyNumberIO
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号