74f7bf30603c7dfe869afcbe63adb6ddd74e9898 angie Wed Jan 10 12:58:38 2018 -0800 Link to NCBI's Genome Data Viewer (GDV) using GCA_ accessions from dbDb.sourceName instead of hardcoded GCF_ ids. refs #18671 diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index acbc929..b40d404 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -111,30 +111,33 @@ /* 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. */ +char *hNcbiGcaId(char *db); +/* Return the NCBI GenBank assembly id (GCA_...) 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);