User Tools

Site Tools


Sidebar

This is the sidebar. Without it, the main text is too wide!


2019년 11월 교육 자료

2022년 교육안

histo2plot.sh
#!/bin/sh
# by Haeyoung Jeong

FILENAME=$(basename "$1") #sample.hist or sample.pe.histo
#BASE=${FILENAME/.*}
BASE=${FILENAME/.hist*}
echo "File base: $BASE"

echo "set term png" > ${BASE}.gp
echo "set output \"${BASE}.png\"" >> ${BASE}.gp
#echo "set datafile separator \",\"" >> ${BASE}.gp
echo "set logscale x" >> ${BASE}.gp
echo "set logscale y" >> ${BASE}.gp
echo "set grid" >> ${BASE}.gp
echo "set xlabel \"kmer frequency\"" >> ${BASE}.gp
echo "set ylabel \"number of distinct kmer\"" >> ${BASE}.gp
echo "plot \"$1\" using 1:2 with lines" >> ${BASE}.gp

gnuplot ${BASE}.gp
histo2plot.sh.txt · Last modified: 2021/03/17 13:09 (external edit)