Loading...
Searching...
No Matches
bwCommon.h
Go to the documentation of this file.
int bwSetPos(bigWigFile_t *fp, size_t pos);
size_t bwRead(void *data, size_t sz, size_t nmemb, bigWigFile_t *fp);
long bwTell(bigWigFile_t *fp);
bwRTree_t *bwReadIndex(bigWigFile_t *fp, uint64_t offset);
void bwDestroyIndexNode(bwRTreeNode_t *node);
void bwDestroyIndex(bwRTree_t *idx);
bwOverlapBlock_t *walkRTreeNodes(bigWigFile_t *bw, bwRTreeNode_t *root, uint32_t tid, uint32_t start, uint32_t end);
void destroyBWOverlapBlock(bwOverlapBlock_t *b);
int bwFinalize(bigWigFile_t *fp);
char *bwStrdup(const char *s);
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:789
bwDestroyIndex
void bwDestroyIndex(bwRTree_t *idx)
Frees space allocated by bwReadIndex There is generally little reason to use this,...
Definition bwValues.c:782
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
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
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
bwDestroyIndexNode
void bwDestroyIndexNode(bwRTreeNode_t *node)
Destroy an bwRTreeNode_t and all of its children.
Definition bwValues.c:761
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
bigWigFile_t
A structure that holds everything needed to access a bigWig file.
Definition bigWig.h:210
bwOverlapBlock_t
This structure holds the data blocks that overlap a given interval.
Definition bwValues.h:56
bwRTreeNode_t
A node within an R-tree holding the index for data.
Definition bwValues.h:20
bwRTree_t
Definition bwValues.h:39