5f7b28612df1ff4e29c31020b33f8fee9c097b11
chmalee
  Tue Oct 10 12:35:00 2023 -0700
Check for refseq historical old table existence before querying them for hgvs terms, refs #26016

diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h
index 598300b..6609eea 100644
--- src/hg/inc/hdb.h
+++ src/hg/inc/hdb.h
@@ -1041,30 +1041,33 @@
 struct trackDb *hFindLatestSnpTrack(char *db, char *suffix, struct trackDb **pFullTrackList);
 /* Return the 'snpNNN<suffix>' track with the highest build number, if any.
  * suffix may be NULL to get the 'All SNPs' table (as opposed to Common, Flagged, Mult). */
 
 char *hFindLatestSnpTableConn(struct sqlConnection *conn, char *suffix);
 /* Return the name of the 'snp1__<suffix>' table with the highest build number, if any.
  * suffix may be NULL to get the 'All SNPs' table (as opposed to Common, Flagged, Mult). */
 
 char *hFindLatestGencodeTableConn(struct sqlConnection *conn, char *suffix);
 /* Return the 'wgEncodeGencode<suffix>V<version>' table with the highest version number, if any.
  * If suffix is NULL, it defaults to Basic. */
 
 boolean hDbHasNcbiRefSeq(char *db);
 /* Return TRUE if db has NCBI's RefSeq alignments and annotations. */
 
+boolean hDbHasNcbiRefSeqOld(char *db);
+/* Return TRUE if db has NCBI's Historical RefSeq alignments and annotations. */
+
 char *hRefSeqAccForChrom(char *db, char *chrom);
 /* Return the RefSeq NC_000... accession for chrom if we can find it, else just chrom.
  * db must never change. */
 
 char *abbreviateRefSeqSummary(char *summary);
 /* strip off the uninformative parts from the RefSeq Summary text: the repetitive note
  * about the publication subset and the Evidence-Data-Notes */
 
 boolean isMito(char *chrom);
 /* Return True if chrom is chrM or chrMT */
 
 char *hdbDefaultKnownDb(char *db);
 /* Get the default knownGene database from the defaultKnown table. */
 
 char *hdbGetMasterGeneTrack(char *knownDb);