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

Next revision
Previous revision
myillu_04_plotkmer.sh [2016/05/07 13:05] – created hyjeongmyillu_04_plotkmer.sh [2021/03/17 13:09] (current) – external edit 127.0.0.1
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.1462593906.txt.gz · Last modified: (external edit)