46bdaa51aa44a800eda5961cd2a9ff3c3c700869 jnavarr5 Wed Dec 3 10:11:00 2025 -0800 Fixing a typo from code review, refs #36786 diff --git src/hg/utils/otto/clinvar/clinVarToBed src/hg/utils/otto/clinvar/clinVarToBed index 8463933a900..afaba972c6d 100755 --- src/hg/utils/otto/clinvar/clinVarToBed +++ src/hg/utils/otto/clinvar/clinVarToBed @@ -643,39 +643,39 @@ # get the summary file summUrl = baseUrl+"submission_summary.txt.gz" summFname = join(downDir, "submission_summary.txt.gz") # get the new VCF file vcfUrl = "https://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh38/clinvar.vcf.gz" vcfFname = join(downDir, "GRCh38.clinvar.vcf.gz") versionFname = join(downDir, "version.txt") if doDownload: logging.info("Creating %s" % versionFname) open(versionFname, "w").write(clinvarVersion) - logging.info("Downlading %s to %s" % (vcfUrl, vcfFname)) + logging.info("Downloading %s to %s" % (vcfUrl, vcfFname)) open(vcfFname, "wb").write(urllib.request.urlopen(vcfUrl).read()) - logging.info("Downlading %s to %s" % (url, outFname)) + logging.info("Downloading %s to %s" % (url, outFname)) open(outFname, "wb").write(urllib.request.urlopen(url).read()) - logging.info("Downlading %s to %s" % (hgvsUrl, hgvsFname)) + logging.info("Downloading %s to %s" % (hgvsUrl, hgvsFname)) open(hgvsFname, "wb").write(urllib.request.urlopen(hgvsUrl).read()) - logging.info("Downlading %s to %s" % (varUrl, varFname)) + logging.info("Downloading %s to %s" % (varUrl, varFname)) open(varFname, "wb").write(urllib.request.urlopen(varUrl).read()) - logging.info("Downlading %s to %s" % (summUrl, summFname)) + logging.info("Downloading %s to %s" % (summUrl, summFname)) open(summFname, "wb").write(urllib.request.urlopen(summUrl).read()) return filename, varFname, hgvsFname, vcfFname, summFname, versionFname def parseVcf(vcfFname): " parse VCF and return as dict alleleId -> (molConseq) " logging.info("Parsing %s" % vcfFname) ret = {} for line in gzip.open(vcfFname, "rt", encoding="utf_8"): # #CHROM POS ID REF ALT QUAL FILTER INFO #1 930248 789256 G A . . ALLELEID=707587;CLNDISDB=MedGen:CN517202;CLNDN=not_provided;CLNHGVS= if line.startswith("#"): continue chrom, start, end, ref, alt, qual, filter, info = line.rstrip("\n").split("\t") infoParts = info.split(";")