Commit bae3bd92 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 278f118a
......@@ -346,11 +346,11 @@ class OboReader(_AbstractFeatureReader):
elif line.startswith("name: "):
name=line.split(": ")[1]
elif line.startswith("namespace: "):
namespace=line.split(" ")[1][0].upper()
namespace=line.split()[1][0].upper()
elif line.startswith("is_a: "):
parents.append(line.split(" ")[1])
parents.append(line.split()[1])
elif line.startswith("relationship: part_of: ") :
parents.append(line.split(" ")[3])
parents.append(line.split()[3])
if id is not None:
yield Entry(**{ 'id' : id, 'name' : name, 'namespace' : namespace, "parents" : parents })
......@@ -378,11 +378,11 @@ class OboReader(_AbstractFeatureReader):
elif line.startswith("name: "):
name=line.split(": ")[1]
elif line.startswith("namespace: "):
namespace=line.split(" ")[1][0].upper()
namespace=line.split()[1][0].upper()
elif line.startswith("is_a: "):
parents.append(line.split(" ")[1])
parents.append(line.split()[1])
elif line.startswith("relationship: part_of: ") :
parents.append(line.split(" ")[3])
parents.append(line.split()[3])
yield Entry(**{ 'id' : id, 'name' : name, 'namespace' : namespace, "parents" : parents })
parents = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment