Skip to content
Snippets Groups Projects
Commit bca8ccf5 authored by Arun Ahuja's avatar Arun Ahuja
Browse files

py3 pickle error; needs bytes flag

parent 70098539
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,7 @@ if __name__ == "__main__": ...@@ -68,7 +68,7 @@ if __name__ == "__main__":
args = parser.parse_args() args = parser.parse_args()
print("Reading %s..." % args.iedb_pickle_path) 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) iedb_datasets = pickle.load(f)
print("Reading %s..." % args.netmhcpan_csv_path) print("Reading %s..." % args.netmhcpan_csv_path)
......
...@@ -84,5 +84,5 @@ if __name__ == "__main__": ...@@ -84,5 +84,5 @@ if __name__ == "__main__":
"percent_positive", "percent_positive",
"count"]) "count"])
print("# distinct pMHC entries: %d" % len(columns["mhc"])) 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) 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