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

fix

parent d3184f29
No related branches found
No related tags found
No related merge requests found
...@@ -117,6 +117,29 @@ do ...@@ -117,6 +117,29 @@ do
bzip2 proteome_peptides.$subset.csv bzip2 proteome_peptides.$subset.csv
fi fi
# Run netmhcpan4
OUT_DIR=predictions/${subset}.netmhcpan4
REUSE1=""
REUSE2=""
if [ "$subset" == "all" ]
then
REUSE1="predictions/chr1.netmhcpan4"
fi
if [ "${2:-reuse-none}" != "reuse-none" ]
then
REUSE2="$EXISTING_DATA"/$OUT_DIR
fi
python run_predictors.py \
proteome_peptides.$subset.csv.bz2 \
--predictor netmhcpan4 \
--chunk-size 10000 \
--allele $(cat alleles.txt) \
--out "$OUT_DIR" \
--worker-log-dir "$SCRATCH_DIR/$DOWNLOAD_NAME" \
--cluster-script-prefix-path $SCRIPT_DIR/cluster_submit_script_header.mssm_hpc.nogpu.lsf \
--reuse-predictions "$REUSE1" "$REUSE2" $EXTRA_ARGS
# Run MHCflurry # Run MHCflurry
for kind in with_mass_spec no_mass_spec for kind in with_mass_spec no_mass_spec
do do
...@@ -144,29 +167,6 @@ do ...@@ -144,29 +167,6 @@ do
--cluster-script-prefix-path $SCRIPT_DIR/cluster_submit_script_header.mssm_hpc.gpu.lsf \ --cluster-script-prefix-path $SCRIPT_DIR/cluster_submit_script_header.mssm_hpc.gpu.lsf \
--reuse-predictions "$REUSE1" "$REUSE2" $EXTRA_ARGS --reuse-predictions "$REUSE1" "$REUSE2" $EXTRA_ARGS
done done
# Run netmhcpan4
OUT_DIR=predictions/${subset}.netmhcpan4
REUSE1=""
REUSE2=""
if [ "$subset" == "all" ]
then
REUSE1="predictions/chr1.netmhcpan4"
fi
if [ "${2:-reuse-none}" != "reuse-none" ]
then
REUSE2="$EXISTING_DATA"/$OUT_DIR
fi
python run_predictors.py \
proteome_peptides.$subset.csv.bz2 \
--predictor netmhcpan4 \
--chunk-size 10000 \
--allele $(cat alleles.txt) \
--out "$OUT_DIR" \
--worker-log-dir "$SCRATCH_DIR/$DOWNLOAD_NAME" \
--cluster-script-prefix-path $SCRIPT_DIR/cluster_submit_script_header.mssm_hpc.nogpu.lsf \
--reuse-predictions "$REUSE1" "$REUSE2" $EXTRA_ARGS
done done
cp $SCRIPT_ABSOLUTE_PATH . cp $SCRIPT_ABSOLUTE_PATH .
......
...@@ -244,7 +244,8 @@ def run(argv=sys.argv[1:]): ...@@ -244,7 +244,8 @@ def run(argv=sys.argv[1:]):
# We rerun any alleles have nulls for any kind of values # We rerun any alleles have nulls for any kind of values
# (e.g. affinity, percentile rank, elution score). # (e.g. affinity, percentile rank, elution score).
is_null_matrix = pandas.DataFrame(columns=alleles, dtype="int8") is_null_matrix = pandas.DataFrame(
columns=alleles, index=result_df.index, dtype="int8")
for (allele, sub_df) in manifest_df.groupby("allele"): for (allele, sub_df) in manifest_df.groupby("allele"):
is_null_matrix[allele] = result_df[sub_df.col.values].isnull().any(1) is_null_matrix[allele] = result_df[sub_df.col.values].isnull().any(1)
print("Fraction null", is_null_matrix.values.mean()) print("Fraction null", is_null_matrix.values.mean())
......
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