0564395ec363631f2ff8d295da6f6b50f873fda4 braney Mon Jan 24 17:01:53 2022 -0800 more chromAlias work: some name changes and support for the new genark chromAlias format diff --git src/hg/inc/chromAlias.h src/hg/inc/chromAlias.h index 7d287b2..902abc4 100644 --- src/hg/inc/chromAlias.h +++ src/hg/inc/chromAlias.h @@ -67,18 +67,21 @@ 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); +struct hash *chromAliasChromToAliasHash(char *database); /* Get the hash that maps chrom names to their aliases. */ + +struct hash *chromAliasAliasToChromHash(char *database); +/* Get the hash that maps alias names to their chroms. */ #endif /* CHROMALIAS_H */