Skip to content

Commit

Permalink
make logging more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
lrauschning committed Sep 10, 2024
1 parent e992e71 commit c375884
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions msyd/pyxfiles/intersection.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ cdef remove_overlap(syn):
ov = prev.ref.end - cur.ref.start +1
if ov > 0:
# there is overlap on ref
logger.warning(f"Found {ov} bp overlap on reference at {cur.ref.start}, dropping from latter record!")
logger.warning(f"Found {ov} bp overlapping synteny on reference at {cur.ref.start}, trimming latter record!")
logger.debug(f"Cur before dropping: {cur}")
cur.drop_inplace(ov, 0) # call drop_inplace to mutate the dataframe from a reference
logger.debug(f"Cur after dropping: {cur}")
Expand Down Expand Up @@ -285,7 +285,7 @@ cdef remove_overlap(syn):
continue

# there is overlap on org
logger.warning(f"Found {ov} bp overlap on {org} at {cur.ranges_dict[org].start}, dropping from latter record!")
logger.warning(f"Found {ov} bp overlapping synteny on {org} at {cur.ranges_dict[org].start}, trimming latter record!")
logger.debug(f"Overlapping on {org}: {prev}, {cur}")
logger.debug(f"Cur before dropping: {cur}")
cur.drop_on_org_inplace(ov, 0, org)
Expand Down Expand Up @@ -343,7 +343,7 @@ def find_multisyn(qrynames, syris, alns, base=None, sort=False, ref='a', cores=1
with multiprocessing.Pool(cores) as pool:
syns = pool.map(remove_overlap, syns)

logger.info("overlap removed")
logger.info("overlapping synteny trimmed")

# shouldn't need any overlap removal
if base:
Expand Down

0 comments on commit c375884

Please sign in to comment.