diff --git a/python/obitools3/commands/grep.pyx b/python/obitools3/commands/grep.pyx index ffcbe3e..1161e51 100644 --- a/python/obitools3/commands/grep.pyx +++ b/python/obitools3/commands/grep.pyx @@ -73,10 +73,7 @@ def run(config): selection.append(i) # Create output view with the line selection - if isinstance(iview, OBIView_NUC_SEQS) : # TODO make view type automatic when cloning - oview = d.new_view(config['obi']['outputview'], view_type="NUC_SEQS_VIEW", view_to_clone=iview, line_selection=selection, comments="obi grep: "+config['grep']['predicate']+'\n') - else : - oview = d.new_view(config['obi']['outputview'], view_to_clone=iview, line_selection=selection, comments="obi grep: "+config['grep']['predicate']) + oview = d.new_view(config['obi']['outputview'], view_to_clone=iview, line_selection=selection, comments="obi grep: "+config['grep']['predicate']+"\n") iview.save_and_close() oview.save_and_close()