acd43c8cb2e79ad5c456c9589b1b5b0b49e4c723 angie Tue Dec 13 09:50:04 2011 -0800 MLQ #6291 (pgSNP format): the pgSnp lib function printSeqCodDisplaywas firing off a query to knownGene without first testing whether knownGene exists, causing error for knownGene-less databases. Now the lib function takes genePredTable as argument and tests existence before querying. diff --git src/hg/inc/pgSnp.h src/hg/inc/pgSnp.h index 8851e36..3e29118 100644 --- src/hg/inc/pgSnp.h +++ src/hg/inc/pgSnp.h @@ -97,31 +97,31 @@ struct pgCodon /* codons covering region */ { char *seq; int cdStart; int cdEnd; int firstCodon; int regStart; /* in coding sequence positions */ int regEnd; }; struct pgCodon *fetchCodons (char *db, struct bed *gene, unsigned chrStart, unsigned chrEnd); /* get codon sequence to compute aa changes */ -void printSeqCodDisplay (char *db, struct pgSnp *item); +void printSeqCodDisplay (char *db, struct pgSnp *item, char *genePredTable); /* print the display of sequence changes for a coding variant */ void printPgDbLink(char *db, struct trackDb *tdb, struct pgSnp *item); /* print the links to phenotype and other databases for pgSnps */ struct asObject *pgSnpAsObj(); // Return asObject describing fields of pgSnp struct pgSnp *pgSnpLoadNoBin (char **row); /* load struct from row without bin */ struct pgSnp *pgSnpLineFileLoad(char **row, struct lineFile *lf); /* Load pgSnp from a lineFile line, with error checking. */ /* Requires comma separated zeroes for frequency and scores. */