Skip to content
Snippets Groups Projects
Commit 61ab5bfd authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

fix

parent d8e2e057
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,7 @@ for kind in with_mass_spec no_mass_spec
do
python run_mhcflurry.py \
proteome_peptides.csv.bz2 \
--chunk-size 10000000 \
--models-dir "$(mhcflurry-downloads path models_class1_pan)/models.$kind" \
--allele $(cat alleles.txt) \
--out "predictions/mhcflurry.$kind" \
......
......@@ -137,7 +137,10 @@ def run(argv=sys.argv[1:]):
num_chunks = int(math.ceil(len(peptides) / args.chunk_size))
print("Split peptides into %d chunks" % num_chunks)
peptide_chunks = numpy.array_split(peptides, num_chunks)
peptide_chunks = [
EncodableSequences.create(chunk)
for chunk in numpy.array_split(peptides, num_chunks)
]
GLOBAL_DATA["predictor"] = predictor
GLOBAL_DATA["args"] = {
......
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