Skip to content

Commit

Permalink
add generated_by and date_generated to header information of gpad 2.0…
Browse files Browse the repository at this point in the history
… assoc writer files
  • Loading branch information
sierra-moxon committed Dec 19, 2023
1 parent 4b3db7d commit 3971529
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ontobio/io/assocwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ def __init__(self, file=None, version=GPAD_1_2):
self.version = GPAD_1_2

self._write("!gpad-version: {}\n".format(self.version))
self._write("!generated-by: {}\n".format("GO Central"))
self._write("!date-generated: {}\n".format(str(datetime.datetime.now().strftime("%Y-%m-%dT%H:%M"))))
self.ecomap = ecomap.EcoMap()

def as_tsv(self, assoc: Union[association.GoAssociation, dict]):
Expand Down

0 comments on commit 3971529

Please sign in to comment.