@@ -487,7 +487,7 @@ def read_bigbed(path, chrom, start=None, end=None, engine="auto"):
487
487
return df
488
488
489
489
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 ):
491
491
"""
492
492
Save a bedGraph-like dataframe as a binary BigWig track.
493
493
@@ -505,7 +505,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat
505
505
is to use the fourth column.
506
506
path_to_binary : str, optional
507
507
Provide system path to the bedGraphToBigWig binary.
508
- engine : {'kenttools ', 'pybigtools '}, optional
508
+ engine : {'ucsc ', 'bigtools '}, optional
509
509
Engine to use for creating the BigWig file.
510
510
511
511
"""
@@ -531,7 +531,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat
531
531
if chromsizes is None :
532
532
chromsizes = df .groupby ('chrom' )['end' ]
533
533
534
- if engine .lower () == 'kenttools ' :
534
+ if engine .lower () == 'ucsc ' :
535
535
if path_to_binary is None :
536
536
cmd = "bedGraphToBigWig"
537
537
try :
@@ -573,7 +573,7 @@ def to_bigwig(df, chromsizes, outpath, value_field=None, engine='kenttools', pat
573
573
)
574
574
return p
575
575
576
- elif engine .lower () == 'pybigtools ' :
576
+ elif engine .lower () == 'bigtools ' :
577
577
import pybigtools
578
578
579
579
f = pybigtools .open (outpath , "w" )
0 commit comments