Skip to content

Commit

Permalink
Small code style improvements for contig stitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Nov 30, 2023
1 parent f1d88db commit 7aec90f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions micall/core/contig_stitcher.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Iterable, Optional, Tuple, List
from typing import Iterable, Optional, Tuple, List, Dict
from collections import deque, defaultdict
from dataclasses import dataclass
from math import ceil
Expand Down Expand Up @@ -530,7 +530,9 @@ def stitch_contigs(contigs: Iterable[GenotypedContig]) -> Iterable[AlignedContig

def stitch_consensus(contigs: Iterable[GenotypedContig]) -> Iterable[GenotypedContig]:
contigs = list(stitch_contigs(contigs))
consensus_parts = defaultdict(list) # group_ref -> List[AlignedContig]

GroupRef = str
consensus_parts: Dict[GroupRef, AlignedContig] = defaultdict(list)

for contig in contigs:
if isinstance(contig, AlignedContig):
Expand Down

0 comments on commit 7aec90f

Please sign in to comment.