obi ngsfilter: fixed a bug with -u option
This commit is contained in:
@ -353,13 +353,15 @@ def run(config):
|
|||||||
info_view = info_input[1]
|
info_view = info_input[1]
|
||||||
|
|
||||||
# Open the unidentified view
|
# 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'],
|
unidentified_input = open_uri(config['ngsfilter']['unidentified'],
|
||||||
input=False,
|
input=False,
|
||||||
newviewtype=View_NUC_SEQS)
|
newviewtype=View_NUC_SEQS)
|
||||||
if unidentified_input is None:
|
if unidentified_input is None:
|
||||||
raise Exception("Could not open the view containing the unidentified reads")
|
raise Exception("Could not open the view containing the unidentified reads")
|
||||||
unidentified = unidentified_input[1]
|
unidentified = unidentified_input[1]
|
||||||
|
else:
|
||||||
|
unidentified = None
|
||||||
|
|
||||||
# Initialize the progress bar
|
# Initialize the progress bar
|
||||||
pb = ProgressBar(len(entries), config, seconde=5)
|
pb = ProgressBar(len(entries), config, seconde=5)
|
||||||
|
Reference in New Issue
Block a user