Commit 5165c77e authored by Nicole Bussola's avatar Nicole Bussola
Browse files

fix loop

parent 4a0d61a9
......@@ -7,33 +7,33 @@ OUTFOLDER=results
DATAFOLDER=data
DATASET=tcga_breast
LAYER1=gene
LAYER2=cnv
LAYER2=prot
LAYER3=prot
TARGET=subtypes
TARGET=ER
MODEL=LSVM
N_SPLITS=10
# go!
# go!cc
#python preprocessing/concat_layers.py --datafolder $DATAFOLDER --dataset $DATASET --target $TARGET --layers $LAYER1 $LAYER2 $LAYER3 --model $MODEL--n_splits $N_SPLITS
for (( i=0; i<=$N_SPLITS; i++ ))
for (( i=0; i<$N_SPLITS; i++ ))
do
snakemake -s Snakefile_split --cores $THREADS --config datafolder=$DATAFOLDER outfolder=$OUTFOLDER dataset=$DATASET target=$TARGET layer1=$LAYER1 layer2=$LAYER2 --model $MODEL split_id=$i -p
snakemake -s Snakefile_split --cores $THREADS --config datafolder=$DATAFOLDER outfolder=$OUTFOLDER dataset=$DATASET target=$TARGET layer1=$LAYER1 layer2=$LAYER2 model=$MODEL split_id=$i -p
done
for MODE in juxt rSNF rSNFi
do
python postprocessing/compute_all_metrics.py --outfolder $OUTFOLDER --dataset $DATASET --target $TARGET --layers $LAYER1 $LAYER2 $LAYER3 --model $MODEL --n_splits $N_SPLITS --mode $MODE
python postprocessing/compute_all_metrics.py --outfolder $OUTFOLDER --dataset $DATASET --target $TARGET --layers $LAYER1 $LAYER2 --model $MODEL --n_splits $N_SPLITS --mode $MODE
done
for MODE in juxt rSNF
do
python postprocessing/borda_global_juxt_rSNF.py --datafolder $DATAFOLDER --outfolder $OUTFOLDER --dataset $DATASET --target $TARGET --layers $LAYER1 $LAYER2 $LAYER3 --model $MODEL --n_splits $N_SPLITS --mode $MODE
python postprocessing/borda_global_juxt_rSNF.py --datafolder $DATAFOLDER --outfolder $OUTFOLDER --dataset $DATASET --target $TARGET --layers $LAYER1 $LAYER2 --model $MODEL --n_splits $N_SPLITS --mode $MODE
done
python postprocessing/borda_global_rSNFi.py --datafolder $DATAFOLDER --outfolder $OUTFOLDER --dataset $DATASET --target $TARGET --layers $LAYER1 $LAYER2 $LAYER3 --model $MODEL --n_splits $N_SPLITS --mode rSNFi
python postprocessing/borda_global_rSNFi.py --datafolder $DATAFOLDER --outfolder $OUTFOLDER --dataset $DATASET --target $TARGET --layers $LAYER1 $LAYER2 --model $MODEL --n_splits $N_SPLITS --mode rSNFi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment