obi ngsfilter: fixed a bug with -u option

This commit is contained in:
Celine Mercier
2018-05-17 14:53:53 +02:00
parent 8a10072d99
commit a166a169cf

View File

@ -353,13 +353,15 @@ def run(config):
info_view = info_input[1]
# Open the unidentified view
if config['ngsfilter']['unidentified'] is not None:
if 'unidentified' in config['ngsfilter'] and config['ngsfilter']['unidentified'] is not None: # TODO keyError if undefined problem
unidentified_input = open_uri(config['ngsfilter']['unidentified'],
input=False,
newviewtype=View_NUC_SEQS)
if unidentified_input is None:
raise Exception("Could not open the view containing the unidentified reads")
unidentified = unidentified_input[1]
else:
unidentified = None
# Initialize the progress bar
pb = ProgressBar(len(entries), config, seconde=5)