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
评论列表
文章目录