Skip to content

Commit

Permalink
Merge pull request #538 from biolink/go-site-issue-1653-header_update
Browse files Browse the repository at this point in the history
updating gaf writer to correct new header requirements in gaf 2.2
  • Loading branch information
dougli1sqrd committed Mar 10, 2021
2 parents 567e391 + 7e301f3 commit 15754df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ontobio/io/assocwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ def __init__(self, file=None, source=None, version="2.1"):

self._write("!gaf-version: {}\n".format(self.version))
self._write("!\n")
self._write("!Generated by GO Central\n")
self._write("!generated-by: GOC\n")
self._write("!\n")
self._write("!Date Generated by GOC: {}\n".format(str(datetime.date.today())))
self._write("!date-generated: {}\n".format(str(datetime.datetime.now().strftime("%Y-%m-%dT%H:%M"))))
self._write("!\n")
# Just uses the word `source` if source is none. Otherwise uses the name of the source in the header
self._write("!Header from {source}source association file:\n".format(source=source+" " if source else ""))
Expand Down

0 comments on commit 15754df

Please sign in to comment.