From 7e301f3abe5ac5691a29018535e2503708bbfa64 Mon Sep 17 00:00:00 2001 From: dougli1sqrd Date: Tue, 9 Mar 2021 21:15:47 -0800 Subject: [PATCH] updating gaf writer to correct new header requirements in gaf 2.2 --- ontobio/io/assocwriter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ontobio/io/assocwriter.py b/ontobio/io/assocwriter.py index 2d286efa..697438f4 100644 --- a/ontobio/io/assocwriter.py +++ b/ontobio/io/assocwriter.py @@ -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 ""))