d3c4dd4f1df4b3919520794bfcaac0a7d0935a7f angie Tue Dec 19 12:07:23 2017 -0800 Replace hgTracks' links to NCBI's obsolete Map Viewer with the new & improved Genome Data Viewer. GDV has only the latest RefSeq assembly for all species except human; it wants GCF_... IDs, which we will have to keep updating in hdb.c. It's possible that someday NCBI may accept our db IDs instead of GCF_. refs #18671 diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index d49f5ee..acbc929 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -108,30 +108,33 @@ /* Return the default db if all else fails */ char *hDbForTaxon(int taxon); /* Get database associated with NCBI taxon number if any. */ char *hDbForSciName(char *sciName); /* Get default db for scientific name */ char *hDefaultChrom(char *db); /* Return some sequence named in chromInfo from the given db, or NULL if db * has no chromInfo. */ int hChromCount(char *db); /* Return the number of chromosomes (scaffolds etc.) in the given db. */ +char *hNcbiGcfId(char *db); +/* Return the NCBI RefSeq assembly+annotations ID (GCF_...) for db, or NULL if we don't know it. */ + struct sqlConnection *hAllocConn(char *db); /* Get free connection if possible. If not allocate a new one. */ struct sqlConnection *hAllocConnMaybe(char *db); /* Get free connection if possible. If not allocate a new one. Return * NULL if db doesn't exist or can't be connected to. */ char *getTrackProfileName(struct trackDb *tdb); /* get profile is associated with a track, return it, otherwise NULL */ struct sqlConnection *hAllocConnProfile(char *profileName, char *db); /* Get free connection, specifying a profile and/or a database. If none * is available, allocate a new one. */ struct sqlConnection *hAllocConnProfileMaybe(char *profileName, char *db);