9f6fab9eaa43645fe4a0e2816d7623301df2b13b
braney
  Thu Jan 18 12:08:09 2024 -0800
forgot to check in vcf.h

diff --git src/inc/vcf.h src/inc/vcf.h
index c9b547f..2e5eb5d 100644
--- src/inc/vcf.h
+++ src/inc/vcf.h
@@ -207,30 +207,35 @@
  * Note: this is very inefficient -- it's better to use vcfTabix if possible!
  * If parseAll, then read in all lines in region, parse and store in
  * vcff->records; if maxErr >= zero, then continue to parse until
  * there are maxErr+1 errors.  A maxErr less than zero does not stop
  * and reports all errors. Set maxErr to VCF_IGNORE_ERRS for silence. */
 
 struct vcfFile *vcfTabixFileAndIndexMayOpen(char *fileOrUrl, char *tbiFileOrUrl, char *chrom, int start, int end,
 				    int maxErr, int maxRecords);
 /* Open a VCF file that has been compressed and indexed by tabix and
  * parse VCF header, or return NULL if unable. tbiFileOrUrl can be NULL.
  * If chrom is non-NULL, seek to the position range and parse all lines in
  * range into vcff->records.  If maxErr >= zero, then continue to parse until
  * there are maxErr+1 errors.  A maxErr less than zero does not stop
  * and reports all errors. Set maxErr to VCF_IGNORE_ERRS for silence */
 
+struct vcfFile *vcfTabixFileAndIndexMayOpenExt(char *fileOrUrl, char *tbiFileOrUrl, char *chrom, int start, int end,
+				    int maxErr, int maxRecords, char *abortMessage);
+/* Extension routine for vcfTabixFileAndIndexMayOpen().  Allows caller to specify an
+ * errAbort message if maxRecords is exceeded. */
+
 struct vcfFile *vcfTabixFileMayOpen(char *fileOrUrl, char *chrom, int start, int end,
 				    int maxErr, int maxRecords);
 /* Open a VCF file that has been compressed and indexed by tabix and
  * parse VCF header, or return NULL if unable.  If chrom is non-NULL,
  * seek to the position range and parse all lines in range into
  * vcff->records.  If maxErr >= zero, then continue to parse until
  * there are maxErr+1 errors.  A maxErr less than zero does not stop
  * and reports all errors. Set maxErr to VCF_IGNORE_ERRS for silence. */
 
 long long vcfTabixItemCount(char *fileOrUrl, char *tbiFileOrUrl);
 /* Return the total number of items across all sequences in fileOrUrl, using index file.
  * If tbiFileOrUrl is NULL, the index file is assumed to be fileOrUrl.tbi.
  * NOTE: not all tabix index files include mapped item counts, so this may return 0 even for
  * large files. */