User Tools

Site Tools


myillu_04_plotkmer.sh

Differences

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

Link to this comparison view

myillu_04_plotkmer.sh [2016/05/07 13:05]
hyjeong created
myillu_04_plotkmer.sh [2016/05/07 13:05] (current)
hyjeong
Line 2: Line 2:
  
   #!/bin/sh   #!/bin/sh
- +  ​
   FILENAME=$(basename "​$1"​) #​sample.hist or sample.pe.fq.hist   FILENAME=$(basename "​$1"​) #​sample.hist or sample.pe.fq.hist
   #​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 17:
   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
  
myillu_04_plotkmer.sh.txt ยท Last modified: 2016/05/07 13:05 by hyjeong