198c9b8daecc44fbda6a6494c566c723920f030a lrnassar Wed Mar 11 18:25:21 2026 -0700 Fixing a few hundred clear typos with the help of Claude. Some are less important in code comments, but majority of them are in user-facing places. I manually approved 60%+ of the changes and didn't see any that were an incorrect suggestion, at worst it was potentially uncessesary, like a code comment having cant instead of can't. No RM. diff --git src/hg/lib/genomeRangeTreeFile.c src/hg/lib/genomeRangeTreeFile.c index 7a60a3a774b..548a5e139fb 100644 --- src/hg/lib/genomeRangeTreeFile.c +++ src/hg/lib/genomeRangeTreeFile.c @@ -394,31 +394,31 @@ bits32 offset = tf->headerLen; struct hashEl *chrom; for (chrom = tf->chromList ; chrom ; chrom = chrom->next ) { int nameLen = strlen(chrom->name); offset += nameLen + 1 + sizeof(offset) + sizeof(offset); /* name + nodes + offset */ } for (chrom = tf->chromList ; chrom ; chrom = chrom->next ) { int size = 2*sizeof(bits32)*hashIntVal(tf->nodes, chrom->name); hashAddInt(tf->offset, chrom->name, offset); offset += size; } /* Now go back and rewrite the header, and close the file */ if (tf->file && fseek(tf->file, 0, SEEK_SET)) - errAbort("couldnt fseek(f,0,SEEK_SET) to rewrite header: errno(%d) = %s\n", errno, strerror(errno)); + errAbort("couldn't fseek(f,0,SEEK_SET) to rewrite header: errno(%d) = %s\n", errno, strerror(errno)); if (tf->file) genomeRangeTreeFileWriteHeader(tf); *nodes = i; *numChroms = tf->numChroms; genomeRangeTreeFileFree(&tf); } void genomeRangeTreeFileUnion(struct genomeRangeTreeFile *tf1, struct genomeRangeTreeFile *tf2, char *outFile) /* Combine two saved genomeRangeTrees in a logical 'or' through a linear file scan. * Writes resulting genomeRangeTree to outFile. * The resulting file cannot be safely read until the operation is complete. The header * information at the beginning of the file has to be updated after all the data is written * since the final merged rangeTree sizes are not known until the ranges are merged. * To enforce this, the header is written with a zero initial 'sig' field so that it cannot * be read as a genomeRangeTree file. The header information and 'sig' is re-written with @@ -521,31 +521,31 @@ for (chrom = tf->chromList ; chrom ; chrom = chrom->next ) { int nameLen = strlen(chrom->name); offset += nameLen + 1 + sizeof(offset) + sizeof(offset); /* name + nodes + offset */ } for (chrom = tf->chromList ; chrom ; chrom = chrom->next ) { int size = 2*sizeof(bits32)*hashIntVal(tf->nodes, chrom->name); hashAddInt(tf->offset, chrom->name, offset); offset += size; } /* Now go back and rewrite the header, data, and close the file */ if (tf->file) { if (fseek(tf->file, 0, SEEK_SET)) - errAbort("couldnt fseek(f,0,SEEK_SET) to rewrite header: errno(%d) = %s\n", errno, strerror(errno)); + errAbort("couldn't fseek(f,0,SEEK_SET) to rewrite header: errno(%d) = %s\n", errno, strerror(errno)); genomeRangeTreeFileWriteHeader(tf); for (chrom = tf->chromList ; chrom ; chrom = chrom->next ) { struct rangeStartSize *r = hashMustFindVal(ranges, chrom->name); rangeWriteArray(r, hashIntVal(tf->nodes, chrom->name), tf->file); freez(&r); } } *nodes = i; *numChroms = tf->numChroms; genomeRangeTreeFileFree(&tf); } void genomeRangeTreeFileStats(char *fileName, int *numChroms, int *nodes, int *size) /* Calculates the number of chroms, ranges, and total size of ranges in the genomeRangeTree file.