7537b3246c147cc4d5de561cd8bed8014dbddf7b max Thu Sep 17 01:59:41 2020 -0700 Adding a hint to bedToBigBed when field count is not as expected. No redmine, just something that I keep forgetting myself and every Covid-track building student has asked about this until now. diff --git src/inc/linefile.h src/inc/linefile.h index 0c0092e..1cfa2de 100644 --- src/inc/linefile.h +++ src/inc/linefile.h @@ -155,30 +155,33 @@ /* Return lineFile to start. */ void lineFileAbort(struct lineFile *lf, char *format, ...) /* Print file name, line number, and error message, and abort. */ #if defined(__GNUC__) __attribute__((format(printf, 2, 3))) #endif ; void lineFileVaAbort(struct lineFile *lf, char *format, va_list args); /* Print file name, line number, and error message, and abort. */ void lineFileUnexpectedEnd(struct lineFile *lf); /* Complain about unexpected end of file. */ +void lineFileExpectWordsMesg(struct lineFile *lf, int expecting, int got, char* extraMessage); +/* Check line has right number of words. Add extraMessage to end of error message. */ + void lineFileExpectWords(struct lineFile *lf, int expecting, int got); /* Check line has right number of words. */ void lineFileExpectAtLeast(struct lineFile *lf, int expecting, int got); /* Check line has right number of words. */ void lineFileShort(struct lineFile *lf); /* Complain that line is too short. */ boolean lineFileNextRow(struct lineFile *lf, char *words[], int wordCount); /* Return next non-blank line that doesn't start with '#' chopped into words. * Returns FALSE at EOF. Aborts on error. */ #define lineFileRow(lf, words) lineFileNextRow(lf, words, ArraySize(words)) /* Read in line chopped into fixed size word array. */