d3752edc12da1bf08427946150f564dbdd5d2254 angie Thu Oct 24 13:55:51 2019 -0700 bigDbSnp track handler code - initial commit. refs #23283 * dnautil: Added trimRefAltLeft to get left-justified trimming (a la VCF not HGVS). * bigBedClick: do hReplaceGbdb up front in parseDetailsTablUrls instead of waiting until endpoint. * trackDbCustom.c: consolidating type-handling for wig/bigWig vs. bigBed-based big*. diff --git src/hg/inc/bigDbSnp.h src/hg/inc/bigDbSnp.h index 3f8325c..6a82ec5 100644 --- src/hg/inc/bigDbSnp.h +++ src/hg/inc/bigDbSnp.h @@ -89,16 +89,29 @@ #define bdsCommonAll "commonAll" #define bdsCommonSome "commonSome" #define bdsDiffMajor "diffMajor" #define bdsFreqIsAmbiguous "freqIsAmbiguous" #define bdsFreqNotRefAlt "freqNotRefAlt" #define bdsMultiMap "multiMap" #define bdsOverlapDiffClass "overlapDiffClass" #define bdsOverlapSameClass "overlapSameClass" #define bdsRefIsAmbiguous "refIsAmbiguous" #define bdsRefIsMinor "refIsMinor" #define bdsRefIsRare "refIsRare" #define bdsRefIsSingleton "refIsSingleton" #define bdsRefMismatch "refMismatch" #define bdsRevStrand "revStrand" +char *bigDbSnpDescribeUcscNote(char *ucscNote); +/* Return a string describing ucscNote, unless it is unrecognized in which case return NULL. + * Do not free returned value. */ + +char *bigDbSnpClassToString(enum bigDbSnpClass class); +/* Return the string version of enum bigDbSnpClass. Do not free result. */ + +char *bigDbSnpAbbrevAllele(char *allele, char *buf, size_t bufLen); +/* If allele can be abbreviated to something shorter than itself that fits in buf, + * and doesn't end up with a tiny bit of abbreviation followed by a bunch of unabbreviated + * sequence, then put the abbreviation in buf and return buf; otherwise return allele. + * If allele is the empty string, returns "-" (in buf). */ + #endif /* BIGDBSNP_H */