Cython API: fixed a bug where the quality format would not be read

properly from the configuration values
This commit is contained in:
Celine Mercier
2018-02-12 14:42:30 +01:00
parent 370fb9272c
commit 00993d4215
2 changed files with 11 additions and 8 deletions

View File

@ -62,7 +62,7 @@ def open_dms_element(DMS dms, bytes path,
if not path:
return (dms,dms)
# The URI is target a taxonomy
# The URI targets a taxonomy
# dms:dmspath/taxonomy/taxoname[/taxid]
if path_parts[0]==b"taxonomy":
if len(path_parts) > 1:
@ -74,7 +74,7 @@ def open_dms_element(DMS dms, bytes path,
raise MalformedURIException('Malformed Taxonomy URI')
return (dms,taxo)
# The URI is target a view
# The URI targets a view
# dms:dmspath/viewname[/columnname|#line|*[/#line|columnname|*[/subcolumn]]]
if create:
@ -282,7 +282,11 @@ def open_uri(uri,
offset=64
else:
try:
offset=config["obi"]["qualityoffset"]
if config["obi"]["qualityformat"][0]=="sanger":
offset=33
elif config["obi"]["qualityformat"][0]=="solexa":
offset=64
#offset=config["obi"]["qualityoffset"] # TODO discuss
except KeyError:
offset=33