Skip to content

Commit

Permalink
Fix utf-8 error
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasyu888 committed Oct 23, 2019
1 parent eebcd07 commit d84359b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genie/maf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ def createFinalMaf(self, mafDf, filePath, maf=False):
mafset = mafDf.to_csv(sep="\t", index=False)
else:
mafset = mafDf.to_csv(sep="\t", index=False, header=None)
write_or_append = "w" if maf else "a"
write_or_append = "wb" if maf else "ab"
with open(filePath, write_or_append) as maffile:
mafSet = process_functions.removeStringFloat(mafset)
maffile.write(mafSet)
maffile.write(mafSet.encode("utf-8"))

def storeProcessedMaf(
self, filePath, mafSynId, centerMafSynId, isNarrow=False):
Expand Down

0 comments on commit d84359b

Please sign in to comment.