-
Notifications
You must be signed in to change notification settings - Fork 0
/
mummer.sh
31 lines (30 loc) · 913 Bytes
/
mummer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#利用mummer进行比对,绘制染色体点图
#usage: sh -r gene1 -q gene2 -o outdir
while getopts ":r:q:o:" opt
do
case $opt in
r)
geo1=$OPTARG
;;
q)
geo2=$OPTARG
;;
o)
mulu=$OPTARG
;;
?)
echo usage:sh mummer.sh -r gene1 -q gene2 -o outdir
esac
done
if [ ! -d $mulu ]; then
mkdir $mulu
fi
PATH="$PATH":/home/106public/software/mummer-4.0.0rc1/bin ; export PATH && \
nucmer --mum --mincluster 500 -t 5 $geo1 $geo2 -p $mulu &&\
delta-filter -1 -i 90 -l 2000 $mulu.delta > $mulu.filter1.delta && \
show-coords -c -r $mulu.delta > $mulu.coords && \
mummerplot -f -R $geo1 -Q $geo2 -p $mulu -s large -t postscript $mulu.filter1.delta ; \
convert $mulu.ps $mulu.pdf ; \
mv $mulu.coords $mulu.delta $mulu.filter $mulu.fplot $mulu.gp $mulu.ps $mulu.rplot $mulu.filter1.delta $mulu.pdf $mulu &&\
echo 染色体点图绘制成功,请查看pdf文件
##produced by kogoorimasaki