812dec9c5d8a5c947bd30442feae4a4449f50257 angie Wed Aug 9 13:41:58 2017 -0700 Oops, forgot to handle '=' in hgvsParseNucleotideChange. diff --git src/hg/lib/hgHgvsParse.c src/hg/lib/hgHgvsParse.c index e97b6ae..41c070d 100644 --- src/hg/lib/hgHgvsParse.c +++ src/hg/lib/hgHgvsParse.c @@ -773,30 +773,33 @@ hdTokenizerFree(&hdt); return NULL; } while (! hdt->eof) { struct hgvsChange *change = NULL; if (hdt->type == tk_seq1Letter) change = parseNtIupac(hdt, dyError); else if (hdt->type == tk_leftSquare || hdt->type == tk_leftParen) change = parseNtRepeat(NULL, hdt, dyError); else if (hdt->type == tk_del || hdt->type == tk_dup || hdt->type == tk_inv) change = parseNtDelOrDupOrInv(hdt, dyError); else if (hdt->type == tk_ins || hdt->type == tk_con) change = parseNtInsOrCon(hdt, dyError); + else if (hdt->type == tk_equal) + change = hgvsChangeNewSimple(hgvsctNoChange, "", HGVS_LENGTH_UNSPECIFIED, + NULL, HGVS_LENGTH_UNSPECIFIED); if (change != NULL) slAddHead(&changeList, change); else { dyPrependf(dyError, "couldn't parse HGVS nucleotide change string '%s'", changeStr); break; } if (!hdtNext(hdt, dyError, "after valid change")) { break; } } slReverse(&changeList); hdTokenizerFree(&hdt); return changeList;