Debian Codegraph @

last-multiplot

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 # Author: Martin C. Frith 2018
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 testscip-shell system . . test. $# -ge 2 || {
6 echoscip-shell system . . echo. "Usage: $0 [options] alignments output-directory"
7 exit 2
8 }
9
10 arg1=$1
11 arg2=$2
12 shift 2
13
14 for i
15 do
16 shift
17 set -- "$@" "$arg1"
18 arg1=$arg2
19 arg2=$i
20 done
21
22 mkdirscip-shell system . . mkdir. "$arg2" || exit 1
23
24 awkscip-shell system . . awk. '
25 /^# PART / {close(f); f = d "/" $3}
26 f {print > f}
27 ' d="$arg2" "$arg1"
28
29 for i in "$arg2"/*
30 do
31 testscip-shell system . . test. -e "$i" || continue
32
33 last-dotplot -m10 -j2 --sort2=0 --rot1=v --rot2=h --labels1=2 "$@" "$i" "$i".png
34
35 rmscip-shell system . . rm. "$i"
36 done