mirror of
https://github.com/KosinskiLab/AlphaPulldown.git
synced 2026-06-04 14:14:24 +08:00
- Strip _entity_poly_seq from generated template mmCIF so AF3 reconstructs _pdbx_poly_seq_scheme from _atom_site, avoiding UNK/gap mismatches - Build query_to_template_map using only residues with atoms to prevent OOB indexing in template features - Add --debug_templates flag to optionally dump generated template mmCIFs into templates_debug/ - Keep templates enabled; test test__chopped_dimer now passes
37 lines
852 B
Bash
Executable File
37 lines
852 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
#
|
|
AWK=gawk
|
|
DIR=/home/dmolodenskiy/AlphaPulldown/conda/share/et
|
|
|
|
usage="usage: $0 [ -d scriptDir ] [ --textdomain domain [ --localedir dir ] ]"
|
|
usage="$usage inputfile.et"
|
|
|
|
TEXTDOMAIN=
|
|
LOCALEDIR=
|
|
|
|
while [ $# -ge 2 ]; do
|
|
if [ "$1" = "-d" ]; then
|
|
DIR=$2; shift; shift
|
|
elif [ "$1" = "--textdomain" ]; then
|
|
TEXTDOMAIN=$2; shift; shift
|
|
elif [ "$1" = "--localedir" ]; then
|
|
LOCALEDIR=$2; shift; shift
|
|
else
|
|
echo $usage 1>&2 ; exit 1
|
|
fi
|
|
done
|
|
|
|
# --localedir requires --textdomain.
|
|
if [ $# -ne 1 -o \( -n "$LOCALEDIR" -a -z "$TEXTDOMAIN" \) ]; then
|
|
echo $usage 1>&2 ; exit 1
|
|
fi
|
|
|
|
ROOT=`echo $1 | sed -e s/.et$//`
|
|
BASE=`echo "$ROOT" | sed -e 's;.*/;;'`
|
|
|
|
set -ex
|
|
$AWK -f ${DIR}/et_h.awk "outfile=${BASE}.h" "$ROOT.et"
|
|
$AWK -f ${DIR}/et_c.awk "outfile=${BASE}.c" "textdomain=$TEXTDOMAIN" \
|
|
"localedir=$LOCALEDIR" "$ROOT.et"
|