Skip to content

Commit

Permalink
narrowpeak spec fix
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Dec 7, 2023
1 parent 3265306 commit 9e2c7e6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bedboss/bedboss.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,18 @@ def insert_pep(

for i, pep_sample in enumerate(pep.samples):
_LOGGER.info(f"Running bedboss pipeline for {pep_sample.sample_name}")

if pep_sample.get("file_type").lower() == "narrowpeak":
is_narrow_peak = True
else:
is_narrow_peak = False

bed_id = run_all(
sample_name=pep_sample.sample_name,
input_file=pep_sample.input_file,
input_type=pep_sample.input_type,
genome=pep_sample.genome,
narrowpeak=pep_sample.get("narrowpeak", False),
narrowpeak=is_narrow_peak,
chrom_sizes=pep_sample.get("chrom_sizes"),
open_signal_matrix=pep_sample.get("open_signal_matrix"),
description=pep_sample.get("description"),
Expand Down

0 comments on commit 9e2c7e6

Please sign in to comment.