This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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() |