Skip to content

Commit

Permalink
fix seq sequence discordance #3
Browse files Browse the repository at this point in the history
  • Loading branch information
phiweger committed May 12, 2017
1 parent 45fa400 commit 17a826c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zoo/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ def write_record(out, accession, record, fmt):
with open(os.path.join(out, accession + ext[fmt]), 'w') as output:
print(record, file=output)
elif fmt == 'json':
record['seq'] = record.pop('sequence')
# Biopython calls sequence field "sequence" while we want to work
# with "seq". Inconvenient.
record = record.replace('sequence', 'seq') # TODO: this is too hacky
with open(out, 'a+') as output:
print(record, file=output)
# 'a+' append to file
Expand Down

0 comments on commit 17a826c

Please sign in to comment.