User Tools

Site Tools


histo2plot.sh

Differences

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

Link to this comparison view

Next revision
Previous revision
histo2plot.sh [2019/11/12 15:13] – created hyjeonghisto2plot.sh [2021/03/17 13:09] (current) – external edit 127.0.0.1
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.1573539205.txt.gz · Last modified: (external edit)