From 43bda60bd33ba4b4ac3bb980fadb7d55b184e40a Mon Sep 17 00:00:00 2001 From: Anton Goloborodko Date: Fri, 9 Aug 2024 10:09:09 +0200 Subject: [PATCH] rename engines --- bioframe/io/fileops.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bioframe/io/fileops.py b/bioframe/io/fileops.py index f98a05e1..fb5aeea5 100644 --- a/bioframe/io/fileops.py +++ b/bioframe/io/fileops.py @@ -487,7 +487,7 @@ def read_bigbed(path, chrom, start=None, end=None, engine="auto"): return df -def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', path_to_binary=None): +def to_bigwig(df, chromsizes, outpath, value_field=None, engine='ucsc', path_to_binary=None): """ Save a bedGraph-like dataframe as a binary BigWig track. @@ -505,7 +505,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat is to use the fourth column. path_to_binary : str, optional Provide system path to the bedGraphToBigWig binary. - engine : {'kenttools', 'pybigtools'}, optional + engine : {'ucsc', 'bigtools'}, optional Engine to use for creating the BigWig file. """ @@ -531,7 +531,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat if chromsizes is None: chromsizes = df.groupby('chrom')['end'] - if engine.lower() == 'kenttools': + if engine.lower() == 'ucsc': if path_to_binary is None: cmd = "bedGraphToBigWig" try: @@ -573,7 +573,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat ) return p - elif engine.lower() == 'pybigtools': + elif engine.lower() == 'bigtools': import pybigtools f = pybigtools.open(outpath, "w")