wall_clock_time_stats_pred.sh 800 B

123456789101112131415161718192021222324252627
  1. # DIR=/scratch/mikem/UserSupport/weizhe.li/runs_process_cn_V2_False/testing_wnorm_448_400_7694088
  2. # DIR=/scratch/mikem/UserSupport/weizhe.li/runs_process_cn_V2_True/testing_wnorm_448_400_7694222
  3. # DIR=/scratch/mikem/UserSupport/weizhe.li/runs_process_cn_V2_True/tumor_wnorm_448_400_7694290
  4. # PREFIX=tumor
  5. DIR=/scratch/mikem/UserSupport/weizhe.li/runs_process_cn_V2_True/normal_wnorm_448_400_7694229
  6. PREFIX=normal
  7. SUBDIRS=`ls -1 $DIR | grep $PREFIX`
  8. STAT_FILE=timing_pred.txt
  9. rm -f $STAT_FILE
  10. for SD in $SUBDIRS
  11. do
  12. echo "Processing $SD subdirectory..."
  13. echo $SD
  14. PREFIX1=$SD
  15. find "$DIR"/"$SD"/sysout -name "$PREFIX1"* | xargs grep "seconds" >> $STAT_FILE
  16. done
  17. sort -k2 -n $STAT_FILE > "$STAT_FILE"_sorted.txt
  18. awk '{ print $2 }' "$STAT_FILE"_sorted.txt > "$STAT_FILE"_sorted_2ndc.txt