Minor update and fix to obi grep command
This commit is contained in:
@ -73,10 +73,7 @@ def run(config):
|
|||||||
selection.append(i)
|
selection.append(i)
|
||||||
|
|
||||||
# Create output view with the line selection
|
# 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_to_clone=iview, line_selection=selection, comments="obi grep: "+config['grep']['predicate']+"\n")
|
||||||
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'])
|
|
||||||
|
|
||||||
iview.save_and_close()
|
iview.save_and_close()
|
||||||
oview.save_and_close()
|
oview.save_and_close()
|
||||||
|
Reference in New Issue
Block a user