URI decoding: fixed reading a taxonomy before any view
This commit is contained in:
@ -210,11 +210,12 @@ def open_uri(uri,
|
|||||||
|
|
||||||
error = None
|
error = None
|
||||||
|
|
||||||
if urib != b"-" and \
|
if b'/taxonomy/' in urib or \
|
||||||
|
(urib != b"-" and \
|
||||||
(scheme==b"dms" or \
|
(scheme==b"dms" or \
|
||||||
(scheme==b"" and \
|
(scheme==b"" and \
|
||||||
(((not input) and "outputformat" not in config["obi"]) or \
|
(((not input) and "outputformat" not in config["obi"]) or \
|
||||||
(input and "inputformat" not in config["obi"])))): # TODO maybe not best way
|
(input and "inputformat" not in config["obi"]))))): # TODO maybe not best way
|
||||||
|
|
||||||
if default_dms is not None and b"/" not in urip.path: # assuming view to open in default DMS (TODO discuss)
|
if default_dms is not None and b"/" not in urip.path: # assuming view to open in default DMS (TODO discuss)
|
||||||
dms=(default_dms, urip.path)
|
dms=(default_dms, urip.path)
|
||||||
@ -464,7 +465,7 @@ def open_uri(uri,
|
|||||||
if format is not None:
|
if format is not None:
|
||||||
if seqtype==b"nuc":
|
if seqtype==b"nuc":
|
||||||
objclass = Nuc_Seq # Nuc_Seq_Stored? TODO
|
objclass = Nuc_Seq # Nuc_Seq_Stored? TODO
|
||||||
if format==b"fasta" or format==b"silva":
|
if format==b"fasta" or format==b"silva" or format==b"rdp":
|
||||||
if input:
|
if input:
|
||||||
iseq = fastaNucIterator(file,
|
iseq = fastaNucIterator(file,
|
||||||
skip=skip,
|
skip=skip,
|
||||||
|
Reference in New Issue
Block a user