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

#index to UCSC assembly hubs
CREATE TABLE genark (
    gcAccession varchar(255) not null,	# GC[AF] accssion identifier, e.g.: GCF_000001405.39
    hubUrl varchar(255) not null,	# path name to hub.txt: GCF/000/001/405/GCF_000001405.39/hub.txt
    asmName varchar(255) not null,	# assembly name: GRCh38.p13
    scientificName varchar(255) not null,	# scientific name: Homo sapiens
    commonName varchar(255) not null,	# common name: human
    taxId int not null,	# taxon id: 9606
    priority int not null,	# search priority to order hgGateway results
    clade varchar(255) not null,	# clade group in the GenArk system
              #Indices
    FULLTEXT gIdx (gcAccession, asmName, scientificName, commonName, clade),
    PRIMARY KEY(gcAccession)
);
