Minor update and fix to obi grep command

This commit is contained in:
Celine Mercier
2016-08-12 17:45:44 +02:00
parent 10b22f79da
commit cf839522e7

View File

@ -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()