comparison scatter-from-wiggle.py @ 2:014a21767ac4 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/circos commit 076837a2e9c2b6ececcea4aa286ea7a412387a96"
author iuc
date Tue, 17 Sep 2019 16:54:57 -0400
parents
children
comparison
equal deleted inserted replaced
1:ae9994cf526f 2:014a21767ac4
1 #!/usr/bin/env python
2 import logging
3 import sys
4
5 import pyBigWig
6
7 logging.basicConfig(level=logging.INFO)
8 log = logging.getLogger()
9
10 if __name__ == "__main__":
11 bw = pyBigWig.open(sys.argv[1])
12 for chrom in sorted(bw.chroms().keys()):
13 for (start, end, value) in bw.intervals(chrom):
14 sys.stdout.write("%s\t%s\t%s\t%s\n" % (chrom, start, end, value))