Skip to content
Snippets Groups Projects
Commit e5a5655c authored by Alex Rubinsteyn's avatar Alex Rubinsteyn
Browse files

Merge pull request #8 from hammerlab/pickle-py3

Python3 pickle error with bytes
parents 70098539 bca8ccf5
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ if __name__ == "__main__":
args = parser.parse_args()
print("Reading %s..." % args.iedb_pickle_path)
with open(args.iedb_pickle_path, "r") as f:
with open(args.iedb_pickle_path, "rb") as f:
iedb_datasets = pickle.load(f)
print("Reading %s..." % args.netmhcpan_csv_path)
......
......@@ -84,5 +84,5 @@ if __name__ == "__main__":
"percent_positive",
"count"])
print("# distinct pMHC entries: %d" % len(columns["mhc"]))
with open(OUTPUT_PATH, "w") as f:
with open(OUTPUT_PATH, "wb") as f:
pickle.dump(assay_dataframes, f, pickle.HIGHEST_PROTOCOL)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment