Skip to content

Instantly share code, notes, and snippets.

View mimakaev's full-sized avatar

Max Imakaev mimakaev

  • Biobot Analytics
  • Boston, MA
View GitHub Profile
@dpryan79
dpryan79 / convertBigWigChroms.py
Last active September 30, 2024 06:07
Convert chromosome names in a bigWig file
#!/usr/bin/env python
import argparse
import pyBigWig
parser = argparse.ArgumentParser(description="Convert the chromosome names of a bigWig file.")
parser.add_argument("conv", metavar="conversion.txt", help="Text file with two columns, the first a chromosome name and the second the converted chromosome name.")
parser.add_argument("input", metavar="input.bigWig", help="Input bigWig file")
parser.add_argument("output", metavar="output.bigWig", help="Output bigWig file name")
args = parser.parse_args()