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

update

parent ebc915a6
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,8 @@ time mhcflurry-class1-train-allele-specific-models \ ...@@ -37,7 +37,8 @@ time mhcflurry-class1-train-allele-specific-models \
--out-models-dir models \ --out-models-dir models \
--percent-rank-calibration-num-peptides-per-length 1000000 \ --percent-rank-calibration-num-peptides-per-length 1000000 \
--min-measurements-per-allele 75 \ --min-measurements-per-allele 75 \
--parallelization-num-jobs 0 --train-num-jobs 0 \
--calibration-num-jobs 4
cp $SCRIPT_ABSOLUTE_PATH . cp $SCRIPT_ABSOLUTE_PATH .
bzip2 LOG.txt bzip2 LOG.txt
......
...@@ -933,11 +933,6 @@ class Class1AffinityPredictor(object): ...@@ -933,11 +933,6 @@ class Class1AffinityPredictor(object):
if worker_pool and len(alleles) > 1: if worker_pool and len(alleles) > 1:
# Run in parallel # Run in parallel
# Performance hack.
for network in self.neural_networks:
network.peptides_to_network_input(encoded_peptides)
do_work = partial( do_work = partial(
_calibrate_percentile_ranks, _calibrate_percentile_ranks,
predictor=self, predictor=self,
...@@ -969,13 +964,14 @@ def _calibrate_percentile_ranks(alleles, predictor, peptides, bins): ...@@ -969,13 +964,14 @@ def _calibrate_percentile_ranks(alleles, predictor, peptides, bins):
Parameters Parameters
---------- ----------
alleles alleles : list of string
predictor predictor : Class1AffinityPredictor
peptides peptides : list of string or EncodableSequences
bins bins : object
Returns Returns
------- -------
dict : allele -> percentile rank transform
""" """
result = {} result = {}
......
...@@ -85,7 +85,15 @@ parser.add_argument( ...@@ -85,7 +85,15 @@ parser.add_argument(
help="Keras verbosity. Default: %(default)s", help="Keras verbosity. Default: %(default)s",
default=0) default=0)
parser.add_argument( parser.add_argument(
"--parallelization-num-jobs", "--train-num-jobs",
default=1,
type=int,
metavar="N",
help="Parallelization jobs. Experimental. "
"Set to 1 for serial run. Set to 0 to use number of cores. "
"Default: %(default)s.")
parser.add_argument(
"--calibration-num-jobs",
default=1, default=1,
type=int, type=int,
metavar="N", metavar="N",
......
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