User Tools

Site Tools


histo2plot.sh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

histo2plot.sh [2019/11/12 15:13]
hyjeong created
histo2plot.sh [2019/11/12 15:13] (current)
hyjeong
Line 1: Line 1:
- 
   #!/bin/sh   #!/bin/sh
   # by Haeyoung Jeong   # by Haeyoung Jeong
- +  ​
   FILENAME=$(basename "​$1"​) #​sample.hist or sample.pe.histo   FILENAME=$(basename "​$1"​) #​sample.hist or sample.pe.histo
   #​BASE=${FILENAME/​.*}   #​BASE=${FILENAME/​.*}
   BASE=${FILENAME/​.hist*}   BASE=${FILENAME/​.hist*}
   echo "File base: $BASE"   echo "File base: $BASE"
- +  ​
   echo "set term png" > ${BASE}.gp   echo "set term png" > ${BASE}.gp
   echo "set output \"​${BASE}.png\""​ >> ${BASE}.gp   echo "set output \"​${BASE}.png\""​ >> ${BASE}.gp
Line 17: Line 16:
   echo "set ylabel \"​number of distinct kmer\""​ >> ${BASE}.gp   echo "set ylabel \"​number of distinct kmer\""​ >> ${BASE}.gp
   echo "plot \"​$1\"​ using 1:2 with lines" >> ${BASE}.gp   echo "plot \"​$1\"​ using 1:2 with lines" >> ${BASE}.gp
- +  ​
   gnuplot ${BASE}.gp   gnuplot ${BASE}.gp
histo2plot.sh.txt ยท Last modified: 2019/11/12 15:13 by hyjeong