f445b21b422aaf984db35718cb50611691210803 hiram Tue Feb 3 14:21:32 2026 -0800 adding a haplotypes item to the assemblyList table refs #34736 diff --git src/hg/inc/assemblyList.h src/hg/inc/assemblyList.h index 52e2fb11c68..f9ca336bf6f 100644 --- src/hg/inc/assemblyList.h +++ src/hg/inc/assemblyList.h @@ -1,44 +1,45 @@ /* assemblyList.h was originally generated by the autoSql program, which also * generated assemblyList.c and assemblyList.sql. This header links the database and * the RAM representation of objects. */ #ifndef ASSEMBLYLIST_H #define ASSEMBLYLIST_H #include "jksql.h" -#define ASSEMBLYLIST_NUM_COLS 13 +#define ASSEMBLYLIST_NUM_COLS 14 extern char *assemblyListCommaSepFieldNames; struct assemblyList /* listing all UCSC genomes, and all NCBI assemblies, with search priority, and status if browser available or can be requested */ { struct assemblyList *next; /* Next in singly linked list. */ char *name; /* UCSC genome: dbDb name or GenArk/NCBI accession */ unsigned *priority; /* assigned search priority */ char *commonName; /* a common name */ char *scientificName; /* binomial scientific name */ unsigned *taxId; /* Entrez taxon ID: www.ncbi.nlm.nih.gov/taxonomy/?term=xxx */ char *clade; /* approximate clade: primates mammals birds fish ... etc ... */ char *description; /* other description text */ unsigned char *browserExists; /* 1 == this assembly is available at UCSC, 0 == can be requested */ char *hubUrl; /* path name to hub.txt: GCF/000/001/405/GCF_000001405.39/hub.txt */ unsigned *year; /* year of assembly construction */ char *refSeqCategory; /* one of: reference, representative or na */ char *versionStatus; /* one of: latest, replaced or suppressed */ char *assemblyLevel; /* one of: complete, chromosome, scaffold or contig */ + char *haplotypes; /* related haplotype assembly when available, comma separated list for polyploid */ }; void assemblyListStaticLoadWithNull(char **row, struct assemblyList *ret); /* Load a row from assemblyList table into ret. The contents of ret will * be replaced at the next call to this function. */ struct assemblyList *assemblyListLoadByQuery(struct sqlConnection *conn, char *query); /* Load all assemblyList from table that satisfy the query given. * Where query is of the form 'select * from example where something=something' * or 'select example.* from example, anotherTable where example.something = * anotherTable.something'. * Dispose of this with assemblyListFreeList(). */ void assemblyListSaveToDb(struct sqlConnection *conn, struct assemblyList *el, char *tableName, int updateSize); /* Save assemblyList as a row to the table specified by tableName. @@ -95,16 +96,15 @@ #define assemblyListTableConfVariable "hub.assemblyListTableName" /* the name of the hg.conf variable to use something other than the default */ char *assemblyListTableName(); /* return the assemblyList table name from the environment, * or hg.conf, or use the default. Cache the result */ char *asmListMatchAllWords(char *searchString); /* given a multiple word search string, fix it up so it will be * a 'match all words' MySQL FULLTEXT query, with the required + signs * in front of the words when appropriate */ #endif /* ASSEMBLYLIST_H */ -