Skip to content

Commit

Permalink
refactor: add create empty BED function
Browse files Browse the repository at this point in the history
  • Loading branch information
deliaBlue committed Jan 24, 2024
1 parent c852b5f commit d929306
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from pathlib import Path

###############################################################################
### Functions
###############################################################################
Expand All @@ -22,3 +24,11 @@ def convert_lib_format(lib_format: str) -> str:
"FASTQ": "fastq",
}
return formats[lib_format]


def create_empty_bed_file(config_file: dict, dir: Path) -> Path:
"""Create empty bed file and store its path in the configuration file."""
empty_bed = f"{dir}/empty_file.bed"
config_file["bed_file"] = empty_bed

return empty_bed

0 comments on commit d929306

Please sign in to comment.