Skip to content

Commit

Permalink
logging format, import order
Browse files Browse the repository at this point in the history
  • Loading branch information
kyclark committed Nov 12, 2020
1 parent 91ca3d9 commit 36fb64b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 09_grph/solution1.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import argparse
import logging
import operator as op
from iteration_utilities import starfilter
from collections import defaultdict
from itertools import product
from Bio import SeqIO
from pprint import pformat
from typing import List, NamedTuple, TextIO
from Bio import SeqIO
from iteration_utilities import starfilter


class Args(NamedTuple):
Expand Down Expand Up @@ -66,8 +66,8 @@ def main() -> None:
start[kmers[0]].append(rec.id)
end[kmers[-1]].append(rec.id)

logging.debug('STARTS\n{}'.format(pformat(start)))
logging.debug('ENDS\n{}'.format(pformat(end)))
logging.debug('STARTS\n%s', pformat(start))
logging.debug('ENDS\n%s', pformat(end))

for kmer in set(start).intersection(set(end)):
for pair in starfilter(op.ne, product(end[kmer], start[kmer])):
Expand Down

0 comments on commit 36fb64b

Please sign in to comment.