Skip to content

Commit

Permalink
Fixed bedmaker bed format
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Feb 21, 2024
1 parent 3b3eab1 commit 71f5ebf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bedboss/bedmaker/bedmaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,10 @@ def make(self) -> dict:
# converting to bed.gz if needed
self.make_bed()
try:
bed_type, file_type = get_bed_type(self.input_file)
bed_type, format_type = get_bed_type(self.input_file)
except Exception:
# we need this exception to catch the case when the input file is not a bed file
bed_type, file_type = get_bed_type(self.output_bed)
bed_type, format_type = get_bed_type(self.output_bed)
if self.check_qc:
bedqc(
self.output_bed,
Expand Down
9 changes: 9 additions & 0 deletions bedboss/bedstat/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# from pydantic import BaseModel, ConfigDict, Field
#
#
# class BEDSTAT_RETURN(BaseModel):
# """
# Model of single namespace search result
# """
#
# ...
2 changes: 1 addition & 1 deletion bedboss/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FILE_TYPE(str, Enum):
class BedMetadata(BaseModel):
sample_name: str
genome: str
file_type: FILE_TYPE = FILE_TYPE.BED
format_type: FILE_TYPE = FILE_TYPE.BED
bed_type: str = Field(
default="bed3", pattern="^bed(?:[3-9]|1[0-5])(?:\+|$)[0-9]?+$"
)
Expand Down

0 comments on commit 71f5ebf

Please sign in to comment.