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

fixes

parent a79a1d08
No related branches found
No related tags found
No related merge requests found
bash GENERATE.sh cluster
...@@ -96,8 +96,10 @@ else ...@@ -96,8 +96,10 @@ else
time mhcflurry-predict \ time mhcflurry-predict \
benchmark.monoallelic.csv.bz2 \ benchmark.monoallelic.csv.bz2 \
--allele-column hla \ --allele-column hla \
--prediction-column-prefix prediction.no_additional_ms \ --prediction-column-prefix no_additional_ms_ \
--models "$(mhcflurry-downloads path models_class1_pan_variants)/models.no_additional_ms" \ --models "$(mhcflurry-downloads path models_class1_pan_variants)/models.no_additional_ms" \
--affinity-only \
--no-affinity-percentile \
--out benchmark.monoallelic.predictions.csv \ --out benchmark.monoallelic.predictions.csv \
--no-throw --no-throw
bzip2 -f benchmark.monoallelic.predictions.csv bzip2 -f benchmark.monoallelic.predictions.csv
...@@ -126,27 +128,45 @@ then ...@@ -126,27 +128,45 @@ then
echo "Reusing existing multiallelic predictions" echo "Reusing existing multiallelic predictions"
else else
cp $SCRIPT_DIR/predict.py . cp $SCRIPT_DIR/predict.py .
time python predict.py \ time mhcflurry-predict \
benchmark.multiallelic.csv \ benchmark.multiallelic.csv.bz2 \
--models \ --allele-column hla \
"$(mhcflurry-downloads path models_class1_pan)/models.combined" \ --prediction-column-prefix mhcflurry_production_ \
"$(mhcflurry-downloads path models_class1_pan_variants)/models.*" \ --models "$(mhcflurry-downloads path models_class1_pan)/models.combined" \
--out "$(pwd)/benchmark.multiallelic.predictions.csv" --affinity-only \
--no-affinity-percentile \
--out "$(pwd)/benchmark.multiallelic.predictions1.csv"
for variant in no_additional_ms compact_peptide affinity_only no_pretrain single_hidden_no_pretrain
do
time mhcflurry-predict \
"$(pwd)/benchmark.multiallelic.predictions1.csv" \
--allele-column hla \
--prediction-column-prefix "${variant}_" \
--models "$(mhcflurry-downloads path models_class1_pan_variants)/models.$variant" \
--affinity-only \
--no-affinity-percentile \
--out "$(pwd)/benchmark.multiallelic.predictions1.csv"
done
bzip2 -f benchmark.multiallelic.predictions1.csv bzip2 -f benchmark.multiallelic.predictions1.csv
rm -f benchmark.multiallelic.predictions2.csv.bz2 rm -f benchmark.multiallelic.predictions2.csv.bz2
fi fi
### PRESENTATION: WITH FLANKS ### PRESENTATION: WITH FLANKS
if [ "$2" == "continue-incomplete" ] && [ -f "benchmark.multiallelic.predictions2.csv.bz2" ] if [ "$2" == "continue-incomplete" ] && [ -f "benchmark.multiallelic.predictions2.csv.bz2" ]
then then
echo "Reusing existing multiallelic predictions2" echo "Reusing existing multiallelic predictions2"
else else
mhcflurry-predict-presentation \ time mhcflurry-predict \
"$(pwd)/benchmark.multiallelic.predictions1.csv" \ "$(pwd)/benchmark.multiallelic.predictions1.csv.bz2" \
--out "$(pwd)/benchmark.multiallelic.predictions2.csv" \ --allele-column hla \
--prediction-column-prefix presentation_with_flanks_ \
--models "$(mhcflurry-downloads path models_class1_presentation)/models" \ --models "$(mhcflurry-downloads path models_class1_presentation)/models" \
--include-details \ --no-affinity-percentile \
--prediction-col presentation_with_flanks \ --out "$(pwd)/benchmark.multiallelic.predictions2.csv"
bzip2 -f benchmark.multiallelic.predictions2.csv bzip2 -f benchmark.multiallelic.predictions2.csv
rm -f benchmark.multiallelic.predictions3.csv.bz2 rm -f benchmark.multiallelic.predictions3.csv.bz2
fi fi
...@@ -156,18 +176,19 @@ if [ "$2" == "continue-incomplete" ] && [ -f "benchmark.multiallelic.predictions ...@@ -156,18 +176,19 @@ if [ "$2" == "continue-incomplete" ] && [ -f "benchmark.multiallelic.predictions
then then
echo "Reusing existing multiallelic predictions3" echo "Reusing existing multiallelic predictions3"
else else
mhcflurry-predict-presentation \ time mhcflurry-predict \
"$(pwd)/benchmark.multiallelic.predictions2.csv" \ "$(pwd)/benchmark.multiallelic.predictions2.csv.bz2" \
--out "$(pwd)/benchmark.multiallelic.predictions3.csv" \ --allele-column hla \
--prediction-column-prefix presentation_with_flanks_ \
--models "$(mhcflurry-downloads path models_class1_presentation)/models" \ --models "$(mhcflurry-downloads path models_class1_presentation)/models" \
--include-details \ --no-affinity-percentile \
--prediction-col presentation_without_flanks \ --no-flanking \
--no-flanks --out "$(pwd)/benchmark.multiallelic.predictions3.csv"
bzip2 -f benchmark.multiallelic.predictions3.csv bzip2 -f benchmark.multiallelic.predictions3.csv
fi fi
cp $SCRIPT_ABSOLUTE_PATH . cp $SCRIPT_ABSOLUTE_PATH .
bzip2 -f "$LOG" bzip2 -f "$LOG"
for i in $(ls LOG-worker.*.txt) ; do bzip2 -f $i ; done for i in $(ls LOG-worker.*.txt) ; do bzip2 -f $i ; done
......
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