## fullatom protein c-terminus patch to allow connection to C-term of protein

NAME CtermConnect
TYPES CTERM_CONNECT

## general requirements for this patch

BEGIN_SELECTOR
PROPERTY PROTEIN
NOT VARIANT_TYPE UPPER_TERMINUS
END_SELECTOR

## now we search for a case that matches the residue, take the first one
## so put generic case last

BEGIN_CASE ### THE GENERAL CASE ##########################################

## delete the polymer connection
SET_POLYMER_CONNECT UPPER NONE

## here we add the new connection point, the icoor values are bogus
##
ADD_CONNECT C ICOOR 180.0 60.0 1.2 C CA N

SET_ICOOR O 180.0 60 1.2 C CA CONN%NCONN

ADD_PROPERTY UPPER_TERMINUS ## implies terminus

END_CASE
