Skip to content

Commit

Permalink
add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed May 7, 2020
1 parent 2091027 commit 780e413
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pydamage/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,11 @@ def analyze(bam, wlen=30, show_al=False, mini=2000, cov=0.5, process=1, outdir="
with multiprocessing.Pool(proc) as p:
res = tqdm(p.imap(test_damage_partial, refs), total = len(refs))
filt_res = [i for i in res if i]

print(f"{len(filt_res)} contigs were successfully analyzed by Pydamage")

if plot and len(filt_res) > 0:
print("\nGenerating pydamage plots")
print("\nGenerating Pydamage plots")
for ref in tqdm(filt_res):
dam_plot = damageplot(damage_dict=ref, wlen=wlen, qlen = ref['qlen'], outdir=outdir)
dam_plot.makedir()
Expand Down

0 comments on commit 780e413

Please sign in to comment.