Skip to content

Commit

Permalink
clean \t in log
Browse files Browse the repository at this point in the history
  • Loading branch information
wpwupingwp committed Oct 4, 2024
1 parent 9c03f72 commit b337c3b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/OGU/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,15 +565,15 @@ def evaluate_main(arg_str=None):
summary, gc_array, sliding = evaluate(aln, arg)
if summary is None:
continue
log.info(f'\t{aln.stem}')
log.info(f'\tSamples: {summary.Samples}')
log.info(f'\tLength {summary.Length} bp')
log.info(f'\tGap ratio: {summary.Gap_Ratio:.8f}')
log.info(f'\tObserved resolution: {summary.Observed_Res:.8f}')
log.info(f'\tNormalized Shannon Index: {summary.Entropy:.8f}')
log.info(f'\tPi: {summary.Pi:.8f}')
log.info(f'\tPhylogenetic diversity: {summary.PD:.8f}')
log.info(f'\tTree resolution: {summary.Tree_Res:.8f}')
log.info(f' {aln.stem}')
log.info(f' Samples: {summary.Samples}')
log.info(f' Length {summary.Length} bp')
log.info(f' Gap ratio: {summary.Gap_Ratio:.8f}')
log.info(f' Observed resolution: {summary.Observed_Res:.8f}')
log.info(f' Normalized Shannon Index: {summary.Entropy:.8f}')
log.info(f' Pi: {summary.Pi:.8f}')
log.info(f' Phylogenetic diversity: {summary.PD:.8f}')
log.info(f' Tree resolution: {summary.Tree_Res:.8f}')
with open(evaluation_result, 'a', encoding='utf-8') as out:
out.write(aln.stem + ',' + str(summary) + '\n')
if not arg.quick:
Expand Down
2 changes: 1 addition & 1 deletion src/OGU/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def init_out(arg):
"""
if not hasattr(arg, 'out') or arg.out is None:
log.warning('Output folder was not set.')
log.info('\tUse "Result" instead.')
log.info(' Use "Result" instead.')
arg.out = Path().cwd().absolute() / 'Result'
else:
arg.out = Path(arg.out).absolute()
Expand Down

0 comments on commit b337c3b

Please sign in to comment.