# db: hg38
# inputFile: input/hgvs/validTerms.txt
# A variant that is famously known as "MTHFR C677T" or "MTHFR 677C>T" -- but the 677 is incorrect (from an old sequence ~1995):
chr1	11796320	11796321	NM_005957.4:c.665C>T	0	-
# Same variant in LRG transcript, protein and genomic coords:
chr1	11796320	11796321	LRG_726t1:c.665C>T	0	-
chr1	11796319	11796322	LRG_726p1:p.Ala222Val	0	-
chr1	11796320	11796321	LRG_726:g.14783C>T	0	+

# These three are equivalent (although p. is less specific):
chr11	112088972	112088973	NM_003002.3:c.276C>A	0	+
chr11	112088970	112088973	NP_002993.1:p.Asp92Glu	0	+
chr11	112088970	112088973	NP_002993.1:p.D92E	0	+

# This is not HGVS but seems to be a commonly requested format and is easy to transform into the internal representation of HGVS:
chr2	29193604	29193607	ALK G1494E	0	-

# More gene symbol HGVS-ish
chr1	8358598	8358601	RERE:Thr758Serfs	0	-
chr1	8361232	8361235	RERE:Thr758Serfs	0	-
chr1	155240657	155240660	GBA1:p.Leu29Alafs*18	0	-
chr1	155239721	155239724	GBA1:p.Leu29Alafs*18	0	-
chr1	9262237	9262240	H6PD Val320=	0	+
chr1	9264518	9264521	H6PD Val320=	0	+
chr1	9262270	9262273	H6PD Val320=	0	+
chr1	9262243	9262246	H6PD Val320=	0	+
chr1	9262249	9262252	H6PD Val320=	0	+
chr1	11802930	11802936	MTHFR Pro101_Gly102insLeuTyrIleAspValThrTrpHisProAlaGlyAspPro	0	-
chr1	11801329	11801335	MTHFR Pro101_Gly102insLeuTyrIleAspValThrTrpHisProAlaGlyAspPro	0	-
chr1	11802933	11802939	MTHFR Pro101_Gly102insLeuTyrIleAspValThrTrpHisProAlaGlyAspPro	0	-
chr1	11800245	11800251	MTHFR Pro101_Gly102insLeuTyrIleAspValThrTrpHisProAlaGlyAspPro	0	-
chr1	32781089	32781101	YARS1 p.Val153_Val156del	0	-
chr1	32806523	32806535	YARS1 p.Val153_Val156del	0	-
chr1	11964767	11964770	PLOD1 Glu532del	0	+
chr1	11966259	11966262	PLOD1 Glu532del	0	+
chr1	40092118	40092136	PPT1 p.Gln91_Cys96delinsPhe	0	-
chr1	40080426	40080444	PPT1 p.Gln91_Cys96delinsPhe	0	-
chr1	11964767	11964770	PLOD1:p.532	0	+
chr1	11966259	11966262	PLOD1:p.532	0	+
# From a user via b0b:
chr3	38597785	38597788	NM_198056.3:pAla735Val	0	-
chr3	38555661	38555664	NM_198056.3:pArg1512Trp	0	-

chr20	33443333	33443334	NM_003098.2:c.287G>C	0	-
chr17	43093299	43093300	NM_007294.3:c.2231C>A	0	-
chr17	43093299	43093300	NM_007294.3(BRCA1):c.2231C>A	0	-

# Bare codon numbers and ranges of codon numbers, refs #38285
chr8	41955408	41955411	KAT6A p.495	0	-
chr8	41949362	41955411	KAT6A p.495_533	0	-
chr8	41949362	41955411	KAT6A p.Lys495_Ser533	0	-
chr8	41955408	41955411	NM_006766.5 p.495	0	-
chr8	41949362	41955411	NM_006766.5 p.495_533	0	-
chr8	41955408	41955411	ENST00000265713.8 p.495	0	-
chr8	41949362	41955411	ENST00000265713.8 p.495_533	0	-
chr8	41949362	41955411	KAT6A c.1483_1599	0	-
chr8	41955408	41955411	KAT6A 495	0	-
chr8	41949362	41955411	KAT6A 495_533	0	-
# A hyphen is a range separator in protein coordinates only, refs #38285
chr8	41949362	41955411	KAT6A 495-533	0	-
chr8	41949362	41955411	KAT6A p.495-533	0	-
chr8	41949362	41955411	NM_006766.5 p.495-533	0	-
chr8	41949362	41955411	ENST00000265713.8 p.495-533	0	-
# ...but in c. and n. terms a hyphen is still an intron offset, not a range:
# this one must stay a single base 1599 nt before c.1483, not codons 1483..1599
chr8	41957009	41957010	KAT6A c.1483-1599	0	-
chr8	42049489	42049490	KAT6A n.100-200	0	-
# Nothing may be left over after a bare codon number: a dropped tail is the silent
# truncation this grammar was added to stop, refs #38353
# Failed to parse 'KAT6A 495-' as HGVS
# Failed to parse 'KAT6A p.495_' as HGVS
# Failed to parse 'KAT6A 495--533' as HGVS
# Failed to parse 'KAT6A p.495_533_600' as HGVS
# The last codon maps; codon 0, a codon past the end of the protein, and a backwards
# range are all refused
# Failed to parse 'KAT6A p.0' as HGVS
chr8	41932207	41932210	KAT6A p.2004	0	-
# Failed to parse 'KAT6A p.2005' as HGVS
# Failed to parse 'KAT6A p.533_495' as HGVS

# A protein accession that is no longer current resolves through ncbiRefSeqLinkHistorical,
# which is what lets an old paper's term still find its position.  NP_000054.2 has three
# deprecated transcript versions behind it, NP_055615.8 has versions .8, .9 and .10.
# refs #38248
chr6	31927752	31927755	NP_000054.2:p.Met1Leu	0	+
chr6	31943457	31943460	NP_000054.2:p.Gly500Arg	0	+
chr7	37342687	37342690	NP_055615.8:p.Met1Leu	0	-
