   (let [ref (ld-> t v "referenceCoordinate" "refAllele")
         alt (get v "allele")
         start (ld-> t v "referenceCoordinate" "start")]
-    (csv-colval (if (str/blank? ref) (get start "index") (+ 1 (get start "index"))))))
+    (if (nil? (get start "index")) "*E-205"
+    (csv-colval (if (str/blank? ref) (get start "index") (+ 1 (get start "index")))))))
      
  (defn variant-stop
   "Return the variant reference sequence stop pos (0-to-1-based transform)."

  (let [ref (ld-> t v "referenceCoordinate" "refAllele")
        alt (get v "allele")
        stop (ld-> t v "referenceCoordinate" "end")]
    (csv-colval (if (and (str/blank? ref) (not (str/blank? alt))) (+ 1 (get stop "index")) (get stop "index")))))
 
 (defn variant-ref
  "Return the variant ref allele sequence."
  [t v]
  (let [refcoord (ld-> t v "referenceCoordinate")]
    (csv-colval (get refcoord "refAllele"))))
 
 (defn variant-alt
   "Return the variant alt allele sequence."
   [v]
   (csv-colval (get v "allele")))
 
 (defn get-variant
  "Returns a map of all variant related fields needed for the clinvar 

 (defn variant-identifier
  "Return variant identifier, typically the ClinGen AlleleReg id."
  [v]
  (if (nil? (get v "CanonicalAllele")) "*E-202"
  (csv-colval (get v "CanonicalAllele"))))
 
  (defn variant-alt-designations
  "Return variant hgvs representations"
  [v]
  (if (nil? (get v "alleleName name")) "*E-203"
  (csv-colval (get v "alleleName name"))))
 
 (defn variant-refseq
  "Return the variant reference sequence."
  [t v]
  (let [refseq (ld-> t v "referenceCoordinate" "referenceSequence")]
    (if (nil? (get refseq "display")) "*E-204"
    (csv-colval (get refseq "display")))))
 
 (defn variant-start
  "Return the variant reference sequence start pos (0-to-1-based transform)."
