#!/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 plotFull(){ #---------- (COCOMOST,COCOMIN,COSEEKMO,LOCOMO,LC) Comparisons LC=LCResults; COSEEKMO=COSEEKMOResults; COCOMOST=COCOMOSTResults; COCOMIN=COCOMINResults; LOCOMO=LOCOMOResults; #it orders by LC's SD grep "survivor" $LC | gawk 'BEGIN {FS=","; OFS="\t"} {print $2,$5,$7,$9,$10,$11,$12}' | sort +4 -n > $LC.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 $LC.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" $COSEEKMO | 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} }' > $COSEEKMO.tmp; grep "survivor" $LOCOMO | 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} }' > $LOCOMO.tmp; grep "survivor" $COCOMOST | 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} }' > $COCOMOST.tmp; grep "survivor" $COCOMIN | 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} }' > $COCOMIN.tmp; for DatasetName in $OrderedList do grep $DatasetName $COSEEKMO.tmp >> $COSEEKMO.out; grep $DatasetName $LOCOMO.tmp >> $LOCOMO.out; grep $DatasetName $COCOMOST.tmp >> $COCOMOST.out; grep $DatasetName $COCOMIN.tmp >> $COCOMIN.out; done #it creates the xtics sequence based on the order of names of the datasets in StandardLC xtics=`cat $LC.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" $NonePreciseProximalLC | 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} }' > $NonePreciseProximalLC.tmp; grep "survivor" $LocalWrapperPreciseProximalLC | 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} }' > $LocalWrapperPreciseProximalLC.tmp; grep "survivor" $COCOMINWrapperPreciseProximalLC | 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} }' > $COCOMINWrapperPreciseProximalLC.tmp; for DatasetName in $OrderedList do grep $DatasetName $NonePreciseProximalLC.tmp >> $NonePreciseProximalLC.out; grep $DatasetName $LocalWrapperPreciseProximalLC.tmp >> $LocalWrapperPreciseProximalLC.out; grep $DatasetName $COCOMINWrapperPreciseProximalLC.tmp >> $COCOMINWrapperPreciseProximalLC.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" $NoneProximalLC | 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} }' > $NoneProximalLC.tmp; 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" $LocalWrapperProximalLC | 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} }' > $LocalWrapperProximalLC.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; 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; for DatasetName in $OrderedList do grep $DatasetName $NoneProximalLC.tmp >> $NoneProximalLC.out; grep $DatasetName $LocalWrapperPreciseLC.tmp >> $LocalWrapperPreciseLC.out; grep $DatasetName $LocalWrapperProximalLC.tmp >> $LocalWrapperProximalLC.out; grep $DatasetName $COCOMINWrapperPreciseLC.tmp >> $COCOMINWrapperPreciseLC.out; grep $DatasetName $COCOMINWrapperProximalLC.tmp >> $COCOMINWrapperProximalLC.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" $NonePreciseLOCOMO5 | 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} }' > $NonePreciseLOCOMO5.tmp; grep "survivor" $NonePreciseLOCOMO10 | 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} }' > $NonePreciseLOCOMO10.tmp; grep "survivor" $NonePreciseLOCOMO20 | 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} }' > $NonePreciseLOCOMO20.tmp; grep "survivor" $NonePreciseLOCOMO40 | 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} }' > $NonePreciseLOCOMO40.tmp; grep "survivor" $NonePreciseLOCOMO80 | 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} }' > $NonePreciseLOCOMO80.tmp; #it uses LC's SD ordering to order the rest of them on their datasets for DatasetName in $OrderedList do grep $DatasetName $NonePreciseLOCOMO5.tmp >> $NonePreciseLOCOMO5.out; grep $DatasetName $NonePreciseLOCOMO10.tmp >> $NonePreciseLOCOMO10.out; grep $DatasetName $NonePreciseLOCOMO20.tmp >> $NonePreciseLOCOMO20.out; grep $DatasetName $NonePreciseLOCOMO40.tmp >> $NonePreciseLOCOMO40.out; grep $DatasetName $NonePreciseLOCOMO80.tmp >> $NonePreciseLOCOMO80.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 < $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 < $COCOMINWrapperPreciseLOCOMO5.tmp; grep "survivor" $COCOMINWrapperPreciseLOCOMO10 | 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} }' > $COCOMINWrapperPreciseLOCOMO10.tmp; grep "survivor" $COCOMINWrapperPreciseLOCOMO20 | 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} }' > $COCOMINWrapperPreciseLOCOMO20.tmp; grep "survivor" $COCOMINWrapperPreciseLOCOMO40 | 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} }' > $COCOMINWrapperPreciseLOCOMO40.tmp; grep "survivor" $COCOMINWrapperPreciseLOCOMO80 | 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} }' > $COCOMINWrapperPreciseLOCOMO80.tmp; #it uses LC's SD ordering to order the rest of them on their datasets for DatasetName in $OrderedList do grep $DatasetName $COCOMINWrapperPreciseLOCOMO5.tmp >> $COCOMINWrapperPreciseLOCOMO5.out; grep $DatasetName $COCOMINWrapperPreciseLOCOMO10.tmp >> $COCOMINWrapperPreciseLOCOMO10.out; grep $DatasetName $COCOMINWrapperPreciseLOCOMO20.tmp >> $COCOMINWrapperPreciseLOCOMO20.out; grep $DatasetName $COCOMINWrapperPreciseLOCOMO40.tmp >> $COCOMINWrapperPreciseLOCOMO40.out; grep $DatasetName $COCOMINWrapperPreciseLOCOMO80.tmp >> $COCOMINWrapperPreciseLOCOMO80.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" $NoneProximalLOCOMO5 | 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} }' > $NoneProximalLOCOMO5.tmp; grep "survivor" $NoneProximalLOCOMO10 | 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} }' > $NoneProximalLOCOMO10.tmp; grep "survivor" $NoneProximalLOCOMO20 | 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} }' > $NoneProximalLOCOMO20.tmp; grep "survivor" $NoneProximalLOCOMO40 | 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} }' > $NoneProximalLOCOMO40.tmp; grep "survivor" $NoneProximalLOCOMO80 | 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} }' > $NoneProximalLOCOMO80.tmp; #it uses LC's SD ordering to order the rest of them on their datasets for DatasetName in $OrderedList do grep $DatasetName $NoneProximalLOCOMO5.tmp >> $NoneProximalLOCOMO5.out; grep $DatasetName $NoneProximalLOCOMO10.tmp >> $NoneProximalLOCOMO10.out; grep $DatasetName $NoneProximalLOCOMO20.tmp >> $NoneProximalLOCOMO20.out; grep $DatasetName $NoneProximalLOCOMO40.tmp >> $NoneProximalLOCOMO40.out; grep $DatasetName $NoneProximalLOCOMO80.tmp >> $NoneProximalLOCOMO80.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 < $LocalWrapperProximalLOCOMO5.tmp; grep "survivor" $LocalWrapperProximalLOCOMO10 | 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} }' > $LocalWrapperProximalLOCOMO10.tmp; grep "survivor" $LocalWrapperProximalLOCOMO20 | 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} }' > $LocalWrapperProximalLOCOMO20.tmp; grep "survivor" $LocalWrapperProximalLOCOMO40 | 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} }' > $LocalWrapperProximalLOCOMO40.tmp; grep "survivor" $LocalWrapperProximalLOCOMO80 | 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} }' > $LocalWrapperProximalLOCOMO80.tmp; #it uses LC's SD ordering to order the rest of them on their datasets for DatasetName in $OrderedList do grep $DatasetName $LocalWrapperProximalLOCOMO5.tmp >> $LocalWrapperProximalLOCOMO5.out; grep $DatasetName $LocalWrapperProximalLOCOMO10.tmp >> $LocalWrapperProximalLOCOMO10.out; grep $DatasetName $LocalWrapperProximalLOCOMO20.tmp >> $LocalWrapperProximalLOCOMO20.out; grep $DatasetName $LocalWrapperProximalLOCOMO40.tmp >> $LocalWrapperProximalLOCOMO40.out; grep $DatasetName $LocalWrapperProximalLOCOMO80.tmp >> $LocalWrapperProximalLOCOMO80.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 < $COCOMINWrapperProximalLOCOMO5.tmp; grep "survivor" $COCOMINWrapperProximalLOCOMO10 | 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} }' > $COCOMINWrapperProximalLOCOMO10.tmp; grep "survivor" $COCOMINWrapperProximalLOCOMO20 | 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} }' > $COCOMINWrapperProximalLOCOMO20.tmp; grep "survivor" $COCOMINWrapperProximalLOCOMO40 | 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} }' > $COCOMINWrapperProximalLOCOMO40.tmp; grep "survivor" $COCOMINWrapperProximalLOCOMO80 | 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} }' > $COCOMINWrapperProximalLOCOMO80.tmp; #it uses LC's SD ordering to order the rest of them on their datasets for DatasetName in $OrderedList do grep $DatasetName $COCOMINWrapperProximalLOCOMO5.tmp >> $COCOMINWrapperProximalLOCOMO5.out; grep $DatasetName $COCOMINWrapperProximalLOCOMO10.tmp >> $COCOMINWrapperProximalLOCOMO10.out; grep $DatasetName $COCOMINWrapperProximalLOCOMO20.tmp >> $COCOMINWrapperProximalLOCOMO20.out; grep $DatasetName $COCOMINWrapperProximalLOCOMO40.tmp >> $COCOMINWrapperProximalLOCOMO40.out; grep $DatasetName $COCOMINWrapperProximalLOCOMO80.tmp >> $COCOMINWrapperProximalLOCOMO80.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; for DatasetName in $OrderedList do grep $DatasetName $PreciseNoneRowLC.tmp >> $PreciseNoneRowLC.out; grep $DatasetName $PreciseColumnNoneLC.tmp >> $PreciseColumnNoneLC.out; grep $DatasetName $PreciseColumnRowLC.tmp >> $PreciseColumnRowLC.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; grep "survivor" $M5PWrapperNoLogPreciseM5P | 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} }' > $M5PWrapperNoLogPreciseM5P.tmp; grep "survivor" $LSRWrapperNoLogPreciseLSR | 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} }' > $LSRWrapperNoLogPreciseLSR.tmp; for DatasetName in $OrderedList do grep $DatasetName $COCOMINWrapperProximalLC.tmp >> $COCOMINWrapperProximalLC.out; grep $DatasetName $M5PWrapperPreciseM5P.tmp >> $M5PWrapperPreciseM5P.out; grep $DatasetName $LSRWrapperPreciseLSR.tmp >> $LSRWrapperPreciseLSR.out; grep $DatasetName $M5PWrapperNoLogPreciseM5P.tmp >> $M5PWrapperNoLogPreciseM5P.out; grep $DatasetName $LSRWrapperNoLogPreciseLSR.tmp >> $LSRWrapperNoLogPreciseLSR.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 <