Skip to content

Commit 936cd9f

Browse files
committed
rename engines
1 parent f72688b commit 936cd9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bioframe/io/fileops.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def read_bigbed(path, chrom, start=None, end=None, engine="auto"):
487487
return df
488488

489489

490-
def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', path_to_binary=None):
490+
def to_bigwig(df, chromsizes, outpath, value_field=None, engine='ucsc', path_to_binary=None):
491491
"""
492492
Save a bedGraph-like dataframe as a binary BigWig track.
493493
@@ -505,7 +505,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat
505505
is to use the fourth column.
506506
path_to_binary : str, optional
507507
Provide system path to the bedGraphToBigWig binary.
508-
engine : {'kenttools', 'pybigtools'}, optional
508+
engine : {'ucsc', 'bigtools'}, optional
509509
Engine to use for creating the BigWig file.
510510
511511
"""
@@ -531,7 +531,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat
531531
if chromsizes is None:
532532
chromsizes = df.groupby('chrom')['end']
533533

534-
if engine.lower() == 'kenttools':
534+
if engine.lower() == 'ucsc':
535535
if path_to_binary is None:
536536
cmd = "bedGraphToBigWig"
537537
try:
@@ -573,7 +573,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat
573573
)
574574
return p
575575

576-
elif engine.lower() == 'pybigtools':
576+
elif engine.lower() == 'bigtools':
577577
import pybigtools
578578

579579
f = pybigtools.open(outpath, "w")

0 commit comments

Comments
 (0)