Skip to content

Commit

Permalink
refactor: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msto committed Jul 15, 2024
1 parent 2f0f545 commit 73be62b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pybedlite/overlap_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ def from_ucsc(
contig, span = interval.rsplit(":", 1)
start, end = span.split("-")

return Interval(contig, int(start) - 1, int(end), negative=strand == "-", name=name)
return Interval(contig, int(start) - 1, int(end), negative=(strand == "-"), name=name)

except Exception as exception:
raise ValueError(
f"Not a valid UCSC position-formatted string: {string}"
Expand Down
5 changes: 2 additions & 3 deletions pybedlite/tests/test_overlap_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

from typing import List

import pytest

from pybedlite.bed_record import BedRecord
from pybedlite.bed_record import BedStrand
from pybedlite.overlap_detector import Interval
from pybedlite.overlap_detector import OverlapDetector
from pybedlite.bed_record import BedStrand
from pybedlite.bed_record import BedRecord
import pytest


def run_test(targets: List[Interval], query: Interval, results: List[Interval]) -> None:
Expand Down

0 comments on commit 73be62b

Please sign in to comment.