#
# Rules file for sequential residue/residue pattern in hncacb and hncoca files
#

####################################################################
#
# First define the IDcol and data columns of the input files 
# IDcol is the data column that identifies an entry (peakId number in our case)
# Data columns need to correspond to the RULES below.
#
# Also define the errors allowed from matching within the
# same file and between files.
#
#       Filename  IDcol    data      intrafile errs   interfile errs

FORMAT: hsqc        1   3:10:17     0.015:0.25:        0.03:0.5:0
FORMAT: hnca        1   3:10:17:24  0.015:0.25:0.50:0  0.03:0.5:0.5:0
FORMAT: hncoca      1   3:10:17:24  0.015:0.25:0.50:0  0.03:0.5:0.5:0


####################################################################
#
# Connectivity Rules
#
#     Filename    Assign  Connectivity Relation 

RULE1: hsqc            1  H1       N1  I1
RULE2: hnca            1  H1  Ca1  N1  I2
RULE3: hncoca          1  H2  Ca1  N2  I3
RULE4: hnca            1  H2  Ca2  N2  I4
RULE5: hsqc            1  H2       N2  I5
RULE6: hnca            1  H2  Ca1  N2  I6

####################################################################
#
# Output specification.
# OUTPUT: term <format> 
# A term can be:
#   1) a specific atom in a connectivity relation (eg Ca0), print shift value.
#   2) "RULEn" where n is the nth RULE, value of IDcol is printed (ie, peakId).
#   3) the word "PROB", print out probability fit value
#   4) anything else is considered a string to print on output. 
#
# <format> is a c formatting string for the term (type 'man sscanf'). 
# if no format given, the term is considered a string.
# i have made up a format 'a' which returns absolute value of the shift.

OUTPUT: RULE1 %3d
OUTPUT: RULE5 %3d
OUTPUT: dxx
OUTPUT: PROB %4.2f
#
OUTPUT: RULE2 %3d
OUTPUT: -99 
OUTPUT: RULE4 %3d
OUTPUT: -99 
OUTPUT: RULE3 %3d
OUTPUT: -99 
OUTPUT: -99
OUTPUT: -99
OUTPUT: -99
#
OUTPUT: 11
OUTPUT: I3  %8.4f
OUTPUT: -99
#
OUTPUT: -99 
OUTPUT: Ca1 %6.2f
OUTPUT: -99 
OUTPUT: N1  %6.2f
OUTPUT: H1  %6.2f
OUTPUT: -99 
OUTPUT: Ca2 %6.2f
OUTPUT: -99
OUTPUT: N2  %6.2f
OUTPUT: H2  %6.2f
