c17649d6f7028b83bad1bca0f64ac9d7ba834691 galt Tue Jan 20 16:40:40 2026 -0800 Fixes from code review for utils bigMafToMaf bigBedToBed. Added routines to shared library bigBedCmdSupport. Added code to the other utilities bigChainToChain bigGenePredToGenePred bigPslToPsl bigWigToBedGraph bigWigToWig. refs #28109, 36925 diff --git src/inc/bigBedCmdSupport.h src/inc/bigBedCmdSupport.h index 2c8a96439ad..238a3c0dfca 100644 --- src/inc/bigBedCmdSupport.h +++ src/inc/bigBedCmdSupport.h @@ -1,16 +1,32 @@ /* bigBedCmdSupport - functions to support writing bigBed related commands. */ /* Copyright (C) 2022 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #ifndef bigBedCmdSupport_h #define bigBedCmdSupport_h #include "bigBed.h" void bigBedCmdOutputHeader(struct bbiFile *bbi, FILE *f); /* output a autoSql-style header from the autoSql in the file */ void bigBedCmdOutputTsvHeader(struct bbiFile *bbi, FILE *f); /* output a TSV-style header from the autoSql in the file */ +struct bed *bed3FromPositions(char *fileName); +/* Read positions file and retrun bed 3 list. */ + +void genericBigToNonBigFromBed(struct bbiFile *bbi, char *bedFileName, FILE *outFile, + void (*processChromChunk)(struct bbiFile *bbi, char *chrom, int start, int end, char *bedName, FILE *f) +); +/* Read list of ranges from bed file chrom start end. + * Automatically sort them by chrom, start */ + +void genericBigToNonBigFromPos(struct bbiFile *bbi, char *posFileName, FILE *outFile, + void (*processChromChunk)(struct bbiFile *bbi, char *chrom, int start, int end, char *bedName, FILE *f) +); +/* Read positions from file (chrom:start-end). starts are 1-based, + * but after conversion to bed3 list, they are 0-based. + * Automatically sort them by chrom, start */ + #endif