54406b80d5d435970989acff7b22dd6146c6b411 braney Sat Jan 22 15:24:59 2022 -0800 adding chrom alias support to big files diff --git src/hg/inc/chromAlias.h src/hg/inc/chromAlias.h index f8ef164..7d287b2 100644 --- src/hg/inc/chromAlias.h +++ src/hg/inc/chromAlias.h @@ -64,16 +64,21 @@ /* -------------------------------- End autoSql Generated Code -------------------------------- */ struct hash *chromAliasMakeLookupTable(char *database); /* Given a database name and a connection to that database, construct a lookup table * that takes chromosome alias names to a matching struct chromAlias. Returns NULL * if the given database does not have a chromAlias table. */ struct hash *chromAliasMakeReverseLookupTable(char *database); /* Given a database name and a connection to that database, construct a lookup table * that takes the actual assembly chromosome names to struct chromAliases. Because a * chromosome name may well have multiple aliases, repeated calls to hashLookupNext * may be required to see them all. Returns NULL if the given database does not have * a chromAlias table. */ +void chromAliasSetup(char *database); +/* Read in the chromAlias file/table for this database. */ + +struct hash *chromAliasGetHash(char *database); +/* Get the hash that maps chrom names to their aliases. */ #endif /* CHROMALIAS_H */