invertpdb
来自「最经典的分子对结软件」· 代码 · 共 42 行
TXT
42 行
#!/bin/sh# extracts all atoms in <larger_pdbfile> that are not in <smaller_pdbfile># useful for making an exclude.pdb file (see autoMS) from get_near_res output# DAG 1/95if [ $# -ne 2 ]; then echo "Usage: `basename $0` <larger_pdbfile> <smaller_pdbfile>" exit 1firefpdb=$1smallpdb=$2skipatoms=skip.pdbegrep 'ATOM|HETATM' $smallpdb > $skipatomsnawk 'BEGIN{getline ignore_line < skipatoms}{if ($1 == "ATOM" || $1 ~ /ATM/) { if ($0 ~ ignore_line) { getline ignore_line < skipatoms } else { print $0 } }else { print $0 }}' skipatoms=$skipatoms $refpdb/bin/rm $skipatoms
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?