Skip to content

Commit

Permalink
just reformatting to stop editors from complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Jul 25, 2024
1 parent 48401b5 commit 65cebf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ontobio/io/assocwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ class GafWriter(AssocWriter):
This converts an association dictionary object as produced in GafParser or
GpadParser into a GAF line.
The GAF Writer now assumes that it is writing out GAF version 2.1 style
The GAF Writer now assumes that it is writing out GAF version 2.2 style
annotations. The version can be set when creating a new GafWriter to 2.2
with `version=2.2`. If any version other than 2.1 or 2.2, GafWriter will
default to 2.1.
default to 2.2.
The only difference in 2.1 and 2.2 are how qualifiers (column 4) are handled.
GAF 2.1 allows empty or only `NOT` qualifier values, and only allows
Expand All @@ -167,12 +167,12 @@ class GafWriter(AssocWriter):
written out, or if the qualifier is empty and 2.2 is being written.
"""

def __init__(self, file=None, source=None, version="2.1"):
def __init__(self, file=None, source=None, version="2.2"):
self.file = file
if version in ["2.1", "2.2"]:
if version in ["2.2"]:
self.version = version
else:
self.version = "2.1"
self.version = "2.2"

self._write("!gaf-version: {}\n".format(self.version))
self._write("!\n")
Expand Down
2 changes: 1 addition & 1 deletion ontobio/io/entitywriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def __init__(self, file=None, version=None):
if self.version == "2.0":
self.file.write("!gpi-version: 2.0\n")
self.file.write("!date_generated: " + datetime.now().strftime("%Y-%m-%dT%H:%M") + "\n")
self.file.write("!generated_by: GO Central\n")
self.file.write("!generated-by: GOC\n") # following conventions in assocwriter for now.
else:
self.file.write("!gpi-version: 1.2\n")

Expand Down

0 comments on commit 65cebf5

Please sign in to comment.