Skip to content

Commit

Permalink
use type comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pontushojer committed Jun 7, 2023
1 parent 9692e71 commit 8ccbaf3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/naibr/global_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
logger = logging.getLogger(__name__)


def parse_blacklist(fname):
def parse_blacklist(fname: "os.PathLike[str]"):
blacklist = collections.defaultdict(list)
with open(fname) as f:
for line in f:
Expand Down Expand Up @@ -80,7 +80,7 @@ def estimate_lmin_lmax(bam_file, sd_mult: int, debug: bool = False) -> Tuple[int
class Configs:
MIN_MAPQ: int = 40
MIN_BC_OVERLAP: int = 3
BAM_FILE: Optional[os.PathLike[str]] = None
BAM_FILE: Optional["os.PathLike[str]"] = None
DEBUG: bool = False
DIR: os.PathLike = field(default=Path.cwd())
MAX_LINKED_DIST: int = 10_000
Expand All @@ -94,8 +94,8 @@ class Configs:
MAX_LEN: int = 200000
MIN_READS: int = 2
MIN_DISCS: int = 2
CANDIDATES: Optional[os.PathLike[str]] = None
BLACKLIST_FILE: Optional[os.PathLike[str]] = None
CANDIDATES: Optional["os.PathLike[str]"] = None
BLACKLIST_FILE: Optional["os.PathLike[str]"] = None
BLACKLIST: Optional[Dict[str, List[Tuple[int, int]]]] = None
_PREFIX: str = field(default="NAIBR_SVs")

Expand Down

0 comments on commit 8ccbaf3

Please sign in to comment.