libBigWig
bwCommon.h
Go to the documentation of this file.
1 
15 int bwSetPos(bigWigFile_t *fp, size_t pos);
16 
27 size_t bwRead(void *data, size_t sz, size_t nmemb, bigWigFile_t *fp);
28 
35 long bwTell(bigWigFile_t *fp);
36 
44 bwRTree_t *bwReadIndex(bigWigFile_t *fp, uint64_t offset);
45 
51 
57 void bwDestroyIndex(bwRTree_t *idx);
58 
60 bwOverlapBlock_t *walkRTreeNodes(bigWigFile_t *bw, bwRTreeNode_t *root, uint32_t tid, uint32_t start, uint32_t end);
61 void destroyBWOverlapBlock(bwOverlapBlock_t *b);
63 
70 int bwFinalize(bigWigFile_t *fp);
bwRTreeNode_t
A node within an R-tree holding the index for data.
Definition: bwValues.h:20
bwDestroyIndex
void bwDestroyIndex(bwRTree_t *idx)
Frees space allocated by bwReadIndex There is generally little reason to use this,...
Definition: bwValues.c:784
bwSetPos
int bwSetPos(bigWigFile_t *fp, size_t pos)
Like fsetpos, but for local or remote bigWig files. This will set the file position indicator to the ...
Definition: bwRead.c:19
bwRTree_t
Definition: bwValues.h:39
bwReadIndex
bwRTree_t * bwReadIndex(bigWigFile_t *fp, uint64_t offset)
Reads a data index (either full data or a zoom level) from a bigWig file. There is little reason for ...
Definition: bwValues.c:791
bwOverlapBlock_t
This structure holds the data blocks that overlap a given interval.
Definition: bwValues.h:56
bwDestroyIndexNode
void bwDestroyIndexNode(bwRTreeNode_t *node)
Destroy an bwRTreeNode_t and all of its children.
Definition: bwValues.c:763
bwTell
long bwTell(bigWigFile_t *fp)
Determine what the file position indicator say. This is equivalent to ftell for local or remote files...
Definition: bwRead.c:11
bwRead
size_t bwRead(void *data, size_t sz, size_t nmemb, bigWigFile_t *fp)
A local/remote version of fread. Reads data from either local or remote bigWig files.
Definition: bwRead.c:26
bwFinalize
int bwFinalize(bigWigFile_t *fp)
Finishes what's needed to write a bigWigFile Flushes the buffer, converts the index linked list to a ...
Definition: bwWrite.c:1229
bigWigFile_t
A structure that holds everything needed to access a bigWig file.
Definition: bigWig.h:210