Various display improvements

This commit is contained in:
Celine Mercier
2019-09-03 21:46:39 +02:00
parent d491480af2
commit f296517716
6 changed files with 16 additions and 8 deletions

View File

@ -34,10 +34,11 @@ def addOptions(parser):
metavar="<PREDICATE>",
default=None,
type=str,
help="Python boolean expression to be evaluated in the "
help="Warning: use bytes for character strings (b'text' instead of 'text'). "
"Python boolean expression to be evaluated in the "
"sequence/line context. The attribute name can be "
"used in the expression as a variable name."
"An extra variable named 'sequence' or 'line' refers"
"used in the expression as a variable name. "
"An extra variable named 'sequence' or 'line' refers "
"to the sequence or line object itself. "
"Several -p options can be used on the same "
"commande line.")

View File

@ -289,6 +289,7 @@ def run(config):
if pb is not None:
pb(i, force=True)
print("", file=sys.stderr)
logger("info", "Imported %d entries", i)
# Save command config in View and DMS comments
command_line = " ".join(sys.argv[1:])

View File

@ -374,7 +374,8 @@ cdef uniq_sequences(View_NUC_SEQS view, View_NUC_SEQS o_view, ProgressBar pb, li
if MERGED_COLUMN in o_view:
o_merged_col = o_view[MERGED_COLUMN]
print("\n") # TODO because in the middle of progress bar. Better solution?
pb(len(view), force=True)
print("")
logger("info", "Second browsing through the input")
# Initialize the progress bar
pb = ProgressBar(len(uniques), seconde=5)
@ -487,7 +488,7 @@ cdef uniq_sequences(View_NUC_SEQS view, View_NUC_SEQS o_view, ProgressBar pb, li
o_view.delete_column(QUALITY_COLUMN)
if taxonomy is not None:
print("\n") # TODO because in the middle of progress bar. Better solution?
print("") # TODO because in the middle of progress bar. Better solution?
logger("info", "Merging taxonomy classification")
merge_taxonomy_classification(o_view, taxonomy)