a3493ed2ff9a01552e8fe05540bd88b39541879d angie Fri Sep 2 10:33:51 2016 -0700 Expand pseudo-HGVS regex to accept p. after gene name. diff --git src/hg/lib/hgHgvs.c src/hg/lib/hgHgvs.c index d1913fe..38ed891 100644 --- src/hg/lib/hgHgvs.c +++ src/hg/lib/hgHgvs.c @@ -76,31 +76,31 @@ // 6...... original sequence // 7...... replacement sequence #define hgvsRefSeqNPPDotSubstExp hgvsFullRegex(versionedRefSeqNPExp, hgvsPDotSubstExp) // substring numbering: // 0..................................................... whole matching string // 1................ accession and optional dot version // 2..... optional dot version // 3..... optional gene symbol in ()s // 4... optional gene symbol // 5..... original sequence // 6...... 1-based position // 7...... replacement sequence // Pseudo-HGVS in common usage -#define pseudoHgvsGeneSymbolSubstExp "^" geneSymbolExp "[: ]" hgvsAminoAcidSubstExp +#define pseudoHgvsGeneSymbolSubstExp "^" geneSymbolExp "[: p.]+" hgvsAminoAcidSubstExp // 0..................................................... whole matching string // 1................... gene symbol // 2..... original sequence // 3...... 1-based position // 4...... replacement sequence static struct hgvsVariant *hgvsParseCDotSubst(char *term) /* If term is parseable as an HGVS CDS substitution, return the parsed representation, * otherwise NULL. */ { struct hgvsVariant *hgvs = NULL; boolean matches = FALSE; int accIx = 1; int posIx = 0; int refIx = 0;