This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.datatypes.converters.bcf_to_bcf_bgzip_converter

#!/usr/bin/env python

Uses bcftools to compress a bcf into a bcf.gz

usage: %prog in_file out_file
import optparse
import subprocess

[docs]def main(): # Read options, args. parser = optparse.OptionParser() (options, args) = parser.parse_args() input_fname, output_fname = args subprocess.call(["bcftools", "view", input_fname, "-o", output_fname, "-O", "b"])
if __name__ == "__main__": main()