From cf839522e79a8cfc38f34d87cfb9634925b9dc06 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Fri, 12 Aug 2016 17:45:44 +0200 Subject: [PATCH] Minor update and fix to obi grep command --- python/obitools3/commands/grep.pyx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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()