# agpFrag.sql was originally generated by the autoSql program, which also 
# generated agpFrag.c and agpFrag.h.  This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly 
# automatic way.

#How to get through chromosome based on fragments
CREATE TABLE agpFrag (
    chrom varchar(255) not null,	# which chromosome
    chromStart int unsigned not null,	# start position in chromosome
    chromEnd int unsigned not null,	# end position in chromosome
    ix int not null,	# ix of this fragment (useless)
    type char(1) not null,	# (P)redraft, (D)raft, (F)inished or (O)ther
    frag varchar(255) not null,	# which fragment
    fragStart int unsigned not null,	# start position in frag
    fragEnd int unsigned not null,	# end position in frag
    strand char(1) not null,	# + or - (orientation of fragment)
              #Indices
    UNIQUE(chromStart),
    UNIQUE(chromEnd),
    INDEX(frag(14))
);
