#!/bin/bash #Data Source=2 #Attributes=5 #Pred=7 #MeanMRE=9 #SdMRE=10 #SdDivMean=11 #Correlation=12 Attr=2 Pred=3 MeanMRE=4 SdMRE=5 SdMean=6 Corr=7 #---------- (No Wrapper,COCOMIN Wrapper,Local Wrapper - Precise) Comparisons NonePreciseLC=None-Precise-LC; LocalWrapperPreciseLC=LocalWrapper-Precise-LC; COCOMINWrapperPreciseLC=COCOMINWrapper-Precise-LC; #it orders by LC's SD grep "survivor" $NonePreciseLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | sort +4 -n > $NonePreciseLC.out; #it creates the order needed for other plots based on the currect order of names in LC which is sorted by SD OrderedList=`cat $NonePreciseLC.out | gawk 'BEGIN {FS="\t"} {STR=STR " " $1} END {print substr(STR,2,length(STR))}'`; #it uses LC's SD ordering to order the rest of them on their datasets grep "survivor" $LocalWrapperPreciseLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $LocalWrapperPreciseLC.tmp; grep "survivor" $COCOMINWrapperPreciseLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $COCOMINWrapperPreciseLC.tmp; for DatasetName in $OrderedList do grep $DatasetName $LocalWrapperPreciseLC.tmp >> $LocalWrapperPreciseLC.out; grep $DatasetName $COCOMINWrapperPreciseLC.tmp >> $COCOMINWrapperPreciseLC.out; done #it creates the xtics sequence based on the order of names of the datasets in StandardLC xtics=`cat $NonePreciseLC.out | gawk 'BEGIN {FS="\t"; x=-1;} {x=x+1; STR=STR ", \"" $1 "\" " x} END {print substr(STR,3,length(STR))}'`; gnuplot < $NonePreciseLC.out; #it creates the order needed for other plots based on the currect order of names in LC which is sorted by SD OrderedList=`cat $NonePreciseLC.out | gawk 'BEGIN {FS="\t"} {STR=STR " " $1} END {print substr(STR,2,length(STR))}'`; grep "survivor" $LocalWrapperPreciseLOCOMO5 | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $LocalWrapperPreciseLOCOMO5.tmp; grep "survivor" $LocalWrapperPreciseLOCOMO10 | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $LocalWrapperPreciseLOCOMO10.tmp; grep "survivor" $LocalWrapperPreciseLOCOMO20 | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $LocalWrapperPreciseLOCOMO20.tmp; grep "survivor" $LocalWrapperPreciseLOCOMO40 | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $LocalWrapperPreciseLOCOMO40.tmp; grep "survivor" $LocalWrapperPreciseLOCOMO80 | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $LocalWrapperPreciseLOCOMO80.tmp; #it uses LC's SD ordering to order the rest of them on their datasets for DatasetName in $OrderedList do grep $DatasetName $LocalWrapperPreciseLOCOMO5.tmp >> $LocalWrapperPreciseLOCOMO5.out; grep $DatasetName $LocalWrapperPreciseLOCOMO10.tmp >> $LocalWrapperPreciseLOCOMO10.out; grep $DatasetName $LocalWrapperPreciseLOCOMO20.tmp >> $LocalWrapperPreciseLOCOMO20.out; grep $DatasetName $LocalWrapperPreciseLOCOMO40.tmp >> $LocalWrapperPreciseLOCOMO40.out; grep $DatasetName $LocalWrapperPreciseLOCOMO80.tmp >> $LocalWrapperPreciseLOCOMO80.out; done #it creates the xtics sequence based on the order of names of the datasets in StandardLC xtics=`cat $NonePreciseLC.out | gawk 'BEGIN {FS="\t"; x=-1;} {x=x+1; STR=STR ", \"" $1 "\" " x} END {print substr(STR,3,length(STR))}'`; gnuplot < $PreciseNoneNoneLC.out; #it creates the order needed for other plots based on the currect order of names in LC which is sorted by SD OrderedList=`cat $PreciseNoneNoneLC.out | gawk 'BEGIN {FS="\t"} {STR=STR " " $1} END {print substr(STR,2,length(STR))}'`; #it uses LC's SD ordering to order the rest of them on their datasets grep "survivor" $PreciseNoneRowLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $PreciseNoneRowLC.tmp; grep "survivor" $PreciseColumnNoneLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $PreciseColumnNoneLC.tmp; grep "survivor" $PreciseColumnRowLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $PreciseColumnRowLC.tmp; #grep "survivor" $ProximalColumnNoneLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $ProximalColumnNoneLC.tmp; for DatasetName in $OrderedList do grep $DatasetName $PreciseNoneRowLC.tmp >> $PreciseNoneRowLC.out; grep $DatasetName $PreciseColumnNoneLC.tmp >> $PreciseColumnNoneLC.out; grep $DatasetName $PreciseColumnRowLC.tmp >> $PreciseColumnRowLC.out; # grep $DatasetName $ProximalColumnNoneLC.tmp >> $ProximalColumnNoneLC.out; done #it creates the xtics sequence based on the order of names of the datasets in StandardLC xtics=`cat $PreciseNoneNoneLC.out | gawk 'BEGIN {FS="\t"; x=-1;} {x=x+1; STR=STR ", \"" $1 "\" " x} END {print substr(STR,3,length(STR))}'`; gnuplot < $PreciseNoneLC.out; #it creates the order needed for other plots based on the currect order of names in LC which is sorted by SD OrderedList=`cat $PreciseNoneLC.out | gawk 'BEGIN {FS="\t"} {STR=STR " " $1} END {print substr(STR,2,length(STR))}'`; #it uses LC's SD ordering to order the rest of them on their datasets grep "survivor" $PreciseCOCOMINLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $PreciseCOCOMINLC.tmp; grep "survivor" $ProximalCOCOMINLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $ProximalCOCOMINLC.tmp; for DatasetName in $OrderedList do grep $DatasetName $PreciseCOCOMINLC.tmp >> $PreciseCOCOMINLC.out; grep $DatasetName $ProximalCOCOMINLC.tmp >> $ProximalCOCOMINLC.out; done #it creates the xtics sequence based on the order of names of the datasets in StandardLC xtics=`cat $PreciseNoneLC.out | gawk 'BEGIN {FS="\t"; x=-1;} {x=x+1; STR=STR ", \"" $1 "\" " x} END {print substr(STR,3,length(STR))}'`; gnuplot < $NonePreciseLC.out; # ##it creates the order needed for other plots based on the currect order of names in LC which is sorted by SD #OrderedList=`cat $NonePreciseLC.out | gawk 'BEGIN {FS="\t"} {STR=STR " " $1} END {print substr(STR,2,length(STR))}'`; # #it uses LC's SD ordering to order the rest of them on their datasets #grep "survivor" $COCOMINWrapperProximalLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $COCOMINWrapperProximalLC.tmp; #grep "survivor" $COCOMINWrapperProximalLSR | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $COCOMINWrapperProximalLSR.tmp; #grep "survivor" $COCOMINWrapperProximalM5P | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $COCOMINWrapperProximalM5P.tmp # #for DatasetName in $OrderedList #do # grep $DatasetName $COCOMINWrapperProximalLC.tmp >> $COCOMINWrapperProximalLC.out; # grep $DatasetName $COCOMINWrapperProximalLSR.tmp >> $COCOMINWrapperProximalLSR.out; # grep $DatasetName $COCOMINWrapperProximalM5P.tmp >> $COCOMINWrapperProximalM5P.out; #done # ##it creates the xtics sequence based on the order of names of the datasets in StandardLC #xtics=`cat $NonePreciseLC.out | gawk 'BEGIN {FS="\t"; x=-1;} {x=x+1; STR=STR ", \"" $1 "\" " x} END {print substr(STR,3,length(STR))}'`; # #gnuplot < $NonePreciseLC.out; #it creates the order needed for other plots based on the currect order of names in LC which is sorted by SD OrderedList=`cat $NonePreciseLC.out | gawk 'BEGIN {FS="\t"} {STR=STR " " $1} END {print substr(STR,2,length(STR))}'`; #it uses LC's SD ordering to order the rest of them on their datasets grep "survivor" $COCOMINWrapperProximalLC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $COCOMINWrapperProximalLC.tmp; grep "survivor" $M5PWrapperPreciseM5P | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $M5PWrapperPreciseM5P.tmp; grep "survivor" $LSRWrapperPreciseLSR | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | gawk 'BEGIN {FS=OFS="\t"} { if (!survivor[$1]){survivor[$1]=1; print $1,$2,$3,$4,$5,$6,$7} }' > $LSRWrapperPreciseLSR.tmp; for DatasetName in $OrderedList do grep $DatasetName $COCOMINWrapperProximalLC.tmp >> $COCOMINWrapperProximalLC.out; grep $DatasetName $M5PWrapperPreciseM5P.tmp >> $M5PWrapperPreciseM5P.out; grep $DatasetName $LSRWrapperPreciseLSR.tmp >> $LSRWrapperPreciseLSR.out; done #it creates the xtics sequence based on the order of names of the datasets in StandardLC xtics=`cat $NonePreciseLC.out | gawk 'BEGIN {FS="\t"; x=-1;} {x=x+1; STR=STR ", \"" $1 "\" " x} END {print substr(STR,3,length(STR))}'`; gnuplot <