Expand description
§slow5lib-sys
Low level bindings to the slow5lib C library version 1.3.0
§Installation
Add the following to your Cargo.toml:
[dependencies]
slow5lib-sys = "0.10"§License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Structs§
- __
slow5_ press - __
va_ list_ tag - kh_
slow5_ s2a_ s - kh_
slow5_ s2i_ s - kh_
slow5_ s2s_ s - kh_
slow5_ s2ui32_ s - kh_
slow5_ s_ s - ks_
isort_ stack_ t - slow5_
aux_ meta - @struct slow5_aux_meta SLOW5 auxiliary field metadata (information available in the SLOW5 header)
- slow5_
aux_ type_ meta - slow5_
file - @struct slow5_file SLOW5 file structure
- slow5_
file_ meta - @struct slow5_file SLOW5 file meta data
- slow5_
fmt_ meta - @struct slow5_fmt_meta SLOW5 file meta data
- slow5_
hdr - @struct slow5_hdr SLOW5 header
- slow5_
hdr_ data - @struct slow5_hdr_data SLOW5 header data (constant attributes in FAST5 files)
- slow5_
hdr_ data__ bindgen_ ty_ 1 - slow5_
idx - slow5_
press - slow5_
press_ method_ t - slow5_
rec - @struct slow5_rec SLOW5 record data struct (represents a single SLOW5 record)
- slow5_
rec_ aux_ data - @struct slow5_rec_aux_data SLOW5 auxiliary field data (represents a single SLOW5 auxiliary field of a particular read record)
- slow5_
rec_ idx - slow5_
version - @struct slow5_version @brief SLOW5 file version
- slow5_
zlib_ stream
Constants§
- SLOW5_
ASCII_ EXTENSION - SLOW5_
ASCII_ MISSING - SLOW5_
ASCII_ MISSING_ CHAR - SLOW5_
ASCII_ NAME - SLOW5_
ASCII_ NUM_ GROUPS_ FORMAT - SLOW5_
BINARY_ EXTENSION - SLOW5_
BINARY_ HDR_ SIZE_ OFFSET - SLOW5_
BINARY_ NAME - SLOW5_
CHAR_ NULL - SLOW5_
COLUMN_ HDR_ PREFIX - SLOW5_
DEBUG_ PREFIX - SLOW5_
ENUM_ NULL - SLOW5_
ERROR_ PREFIX - SLOW5_
ERR_ ARG - SLOW5_
ERR_ EOF - SLOW5_
ERR_ HDRPARSE - SLOW5_
ERR_ IO - SLOW5_
ERR_ MAGIC - SLOW5_
ERR_ MEM - SLOW5_
ERR_ NOAUX - SLOW5_
ERR_ NOFLD - SLOW5_
ERR_ NOIDX - SLOW5_
ERR_ NOTFOUND - SLOW5_
ERR_ OTH - SLOW5_
ERR_ PRESS - SLOW5_
ERR_ RECPARSE - SLOW5_
ERR_ TRUNC - SLOW5_
ERR_ TYPE - SLOW5_
ERR_ UNK - SLOW5_
ERR_ VERSION - SLOW5_
FORMAT_ STRING_ RAW_ SIGNAL - SLOW5_
HDR_ DATA_ PREFIX - SLOW5_
HDR_ DATA_ PREFIX_ CHAR - SLOW5_
HDR_ ENUM_ LABELS_ BEGIN - SLOW5_
HDR_ ENUM_ LABELS_ END - SLOW5_
HDR_ FILE_ VERSION - SLOW5_
HDR_ FILE_ VERSION_ SEP - SLOW5_
HDR_ NUM_ GROUPS - SLOW5_
HDR_ NUM_ GROUPS_ INIT - SLOW5_
HDR_ PREFIX - SLOW5_
INDEX_ EXTENSION - SLOW5_
INDEX_ HEADER_ SIZE_ OFFSET - SLOW5_
INFO_ PREFIX - SLOW5_
INT8_ T_ NULL - SLOW5_
INT16_ T_ NULL - SLOW5_
INT32_ T_ NULL - SLOW5_
LIB_ VERSION - SLOW5_
NO_ COLOUR - SLOW5_
SEP_ ARRAY - SLOW5_
SEP_ ARRAY_ CHAR - SLOW5_
SEP_ COL - SLOW5_
SEP_ COL_ CHAR - SLOW5_
SEP_ COL_ NAME - SLOW5_
UINT8_ T_ NULL - SLOW5_
UINT16_ T_ NULL - SLOW5_
UINT32_ T_ NULL - SLOW5_
VERBOSE_ PREFIX - SLOW5_
VERSION_ MAJOR - SLOW5_
VERSION_ MINOR - SLOW5_
VERSION_ PATCH - SLOW5_
VERSION_ STRING - SLOW5_
WARNING_ PREFIX - SLOW5_
ZLIB_ COMPRESS_ CHUNK - SLOW5_
ZLIB_ DEPRESS_ CHUNK - SLOW5_
ZLIB_ MEM_ DEFAULT - SLOW5_
ZSTD_ COMPRESS_ LEVEL - slow5_
aux_ type_ SLOW5_ CHAR - slow5_
aux_ type_ SLOW5_ DOUBLE - slow5_
aux_ type_ SLOW5_ DOUBLE_ ARRAY - slow5_
aux_ type_ SLOW5_ ENUM - slow5_
aux_ type_ SLOW5_ ENUM_ ARRAY - slow5_
aux_ type_ SLOW5_ FLOAT - slow5_
aux_ type_ SLOW5_ FLOAT_ ARRAY - slow5_
aux_ type_ SLOW5_ INT8_ T - slow5_
aux_ type_ SLOW5_ INT8_ T_ ARRAY - slow5_
aux_ type_ SLOW5_ INT16_ T - slow5_
aux_ type_ SLOW5_ INT16_ T_ ARRAY - slow5_
aux_ type_ SLOW5_ INT32_ T - slow5_
aux_ type_ SLOW5_ INT32_ T_ ARRAY - slow5_
aux_ type_ SLOW5_ INT64_ T - slow5_
aux_ type_ SLOW5_ INT64_ T_ ARRAY - slow5_
aux_ type_ SLOW5_ STRING - slow5_
aux_ type_ SLOW5_ UINT8_ T - slow5_
aux_ type_ SLOW5_ UINT8_ T_ ARRAY - slow5_
aux_ type_ SLOW5_ UINT16_ T - slow5_
aux_ type_ SLOW5_ UINT16_ T_ ARRAY - slow5_
aux_ type_ SLOW5_ UINT32_ T - slow5_
aux_ type_ SLOW5_ UINT32_ T_ ARRAY - slow5_
aux_ type_ SLOW5_ UINT64_ T - slow5_
aux_ type_ SLOW5_ UINT64_ T_ ARRAY - slow5_
cols_ COL_ digitisation - slow5_
cols_ COL_ len_ raw_ signal - slow5_
cols_ COL_ offset - slow5_
cols_ COL_ range - slow5_
cols_ COL_ raw_ signal - slow5_
cols_ COL_ read_ group - slow5_
cols_ COL_ read_ id - slow5_
cols_ COL_ sampling_ rate - slow5_
cols_ SLOW5_ COLS_ NUM - slow5_
exit_ condition_ opt_ SLOW5_ EXIT_ OFF - slow5_
exit_ condition_ opt_ SLOW5_ EXIT_ ON_ ERR - slow5_
exit_ condition_ opt_ SLOW5_ EXIT_ ON_ WARN - slow5_
fmt_ SLOW5_ FORMAT_ ASCII - < the format is ASCII SLOW5
- slow5_
fmt_ SLOW5_ FORMAT_ BINARY - < the format is binary SLOW5 (that is, BLOW5)
- slow5_
fmt_ SLOW5_ FORMAT_ UNKNOWN - < the format is unknown, usually the case before parsing the file extension
- slow5_
log_ level_ opt_ SLOW5_ LOG_ DBUG - slow5_
log_ level_ opt_ SLOW5_ LOG_ ERR - slow5_
log_ level_ opt_ SLOW5_ LOG_ INFO - slow5_
log_ level_ opt_ SLOW5_ LOG_ OFF - slow5_
log_ level_ opt_ SLOW5_ LOG_ VERB - slow5_
log_ level_ opt_ SLOW5_ LOG_ WARN - slow5_
press_ method_ SLOW5_ COMPRESS_ EX_ ZD - slow5_
press_ method_ SLOW5_ COMPRESS_ NONE - slow5_
press_ method_ SLOW5_ COMPRESS_ SVB_ ZD - slow5_
press_ method_ SLOW5_ COMPRESS_ ZLIB - slow5_
press_ method_ SLOW5_ COMPRESS_ ZSTD
Statics§
Functions§
- slow5_
add_ ⚠rec - Add a read entry to the SLOW5 file while updating the SLOW5 index (not thread safe).
- slow5_
arr_ ⚠qts_ round - slow5_
asprintf ⚠ - slow5_
ato_ ⚠int8 - slow5_
ato_ ⚠int16 - slow5_
ato_ ⚠int32 - slow5_
ato_ ⚠int64 - slow5_
ato_ ⚠uint8 - slow5_
ato_ ⚠uint16 - slow5_
ato_ ⚠uint32 - slow5_
ato_ ⚠uint64 - slow5_
aux_ ⚠add - Adds an auxiliary field to a SLOW5 header. Return
- slow5_
aux_ ⚠add_ enum - slow5_
aux_ ⚠get_ char - slow5_
aux_ ⚠get_ double - slow5_
aux_ ⚠get_ double_ array - slow5_
aux_ ⚠get_ enum - slow5_
aux_ ⚠get_ enum_ array - slow5_
aux_ ⚠get_ float - slow5_
aux_ ⚠get_ float_ array - slow5_
aux_ ⚠get_ int8 - Get an auxiliary field in a SLOW5 record as an 8-bit signed integer.
- slow5_
aux_ ⚠get_ int8_ array - Get an auxiliary field in a SLOW5 record as an 8-bit signed integer array.
- slow5_
aux_ ⚠get_ int16 - slow5_
aux_ ⚠get_ int32 - slow5_
aux_ ⚠get_ int64 - slow5_
aux_ ⚠get_ int16_ array - slow5_
aux_ ⚠get_ int32_ array - slow5_
aux_ ⚠get_ int64_ array - slow5_
aux_ ⚠get_ string - slow5_
aux_ ⚠get_ uint8 - slow5_
aux_ ⚠get_ uint8_ array - slow5_
aux_ ⚠get_ uint16 - slow5_
aux_ ⚠get_ uint32 - slow5_
aux_ ⚠get_ uint64 - slow5_
aux_ ⚠get_ uint16_ array - slow5_
aux_ ⚠get_ uint32_ array - slow5_
aux_ ⚠get_ uint64_ array - slow5_
aux_ ⚠meta_ add - slow5_
aux_ ⚠meta_ add_ enum - slow5_
aux_ ⚠meta_ enum_ parse - slow5_
aux_ ⚠meta_ free - slow5_
aux_ ⚠meta_ init - slow5_
aux_ ⚠meta_ init_ empty - slow5_
aux_ ⚠set - slow5_
aux_ ⚠set_ string - slow5_
aux_ ⚠type_ to_ str - slow5_
close ⚠ - Close a slow5 file and free its memory. If the file had been opened for writing or appending, EOF marker will be written
- slow5_
compress_ ⚠footer_ next - slow5_
convert ⚠ - slow5_
data_ ⚠to_ str - slow5_
decode ⚠ - slow5_
decode_ ⚠record_ press - slow5_
decode_ ⚠signal_ press - slow5_
double_ ⚠to_ str - slow5_
encode ⚠ - slow5_
encode_ ⚠record_ press - slow5_
encode_ ⚠signal_ press - slow5_
eof_ ⚠fwrite - Print the binary end of file to a file pointer.
- slow5_
errno_ ⚠location - slow5_
filestamps_ ⚠cmp - slow5_
float_ ⚠check - slow5_
fmt_ ⚠get_ name - slow5_
fprintf_ ⚠compress - slow5_
fread_ ⚠depress - slow5_
fwrite_ ⚠compress - slow5_
fwrite_ ⚠depress - slow5_
get ⚠ - Get a read entry from a slow5 file corresponding to a read_id.
- slow5_
get_ ⚠aux_ enum_ labels - get the enum labels for a specific auxiliary field and set the number of labels in *n return NULL on error and slow5_errno set to SLOW5_ERR_ARG if header, field NULL, n can be NULL SLOW5_ERR_NOAUX if auxiliary header is NULL SLOW5_ERR_TYPE if the enum labels or num_labels array is NULL, or the field type is not an enum type SLOW5_ERR_NOFLD if the auxiliary field was not found SLOW5_ERR_MEM memory allocation error
- slow5_
get_ ⚠aux_ names - slow5_
get_ ⚠aux_ types - slow5_
get_ ⚠hdr_ keys - slow5_
get_ ⚠idx_ path - slow5_
get_ ⚠mem - slow5_
get_ ⚠next - Get the read entry under the current file pointer of a slow5 file.
- slow5_
get_ ⚠next_ bytes - slow5_
get_ ⚠next_ mem - slow5_
get_ ⚠rids - slow5_
hdr_ ⚠add - Adds a new header data attribute.
- slow5_
hdr_ ⚠add_ attr - Add a new header data attribute.
- slow5_
hdr_ ⚠add_ rg - Add a new header read group.
- slow5_
hdr_ ⚠add_ rg_ data - slow5_
hdr_ ⚠attrs_ to_ str - slow5_
hdr_ ⚠data_ free - slow5_
hdr_ ⚠data_ init - slow5_
hdr_ ⚠free - slow5_
hdr_ ⚠fwrite - Print the header in the specified format to a file pointer.
- slow5_
hdr_ ⚠get - Get a header data attribute for a particular read_group.
- slow5_
hdr_ ⚠get_ data - slow5_
hdr_ ⚠init - slow5_
hdr_ ⚠init_ empty - slow5_
hdr_ ⚠set - Sets a header data attribute for a particular read_group.
- slow5_
hdr_ ⚠to_ mem - Get the header in the specified format.
- slow5_
hdr_ ⚠types_ to_ str - slow5_
hdr_ ⚠write - Writes the associated SLOW5 header to a SLOW5 file.
- slow5_
idx_ ⚠create - Create the index file for slow5 file. Overwrites if already exists.
- slow5_
idx_ ⚠free - slow5_
idx_ ⚠get - slow5_
idx_ ⚠init - slow5_
idx_ ⚠init_ empty - slow5_
idx_ ⚠init_ with - slow5_
idx_ ⚠insert - slow5_
idx_ ⚠load - Loads the index file for slow5 file. Creates the index if not found.
- slow5_
idx_ ⚠load_ with - Loads the index file for slow5 file given it’s pathname. Will not create the index if not found.
- slow5_
idx_ ⚠read - slow5_
idx_ ⚠to - Create the index file for slow5 file. Overrides if already exists.
- slow5_
idx_ ⚠unload - Unloads an index associted to a slow5_file_t using slow5_idx_load and free the memory.
- slow5_
idx_ ⚠write - slow5_
init ⚠ - Ultra-Low-level API ******************************************************************************
- slow5_
init_ ⚠empty - slow5_
int_ ⚠check - slow5_
is_ ⚠c_ label - slow5_
is_ ⚠eof - slow5_
memcpy_ ⚠null_ type - slow5_
memcpy_ ⚠type_ from_ str - slow5_
name_ ⚠get_ fmt - slow5_
open ⚠ - Open a slow5 file with a specific mode given it’s pathname.
- slow5_
open_ ⚠with - Open a slow5 file of a specific format with a mode given it’s pathname.
- slow5_
path_ ⚠get_ fmt - slow5_
pread_ ⚠depress - slow5_
pread_ ⚠depress_ solo - slow5_
press_ ⚠free - slow5_
press_ ⚠init - slow5_
printf_ ⚠compress - slow5_
ptr_ ⚠compress - slow5_
ptr_ ⚠compress_ solo - slow5_
ptr_ ⚠depress - slow5_
ptr_ ⚠depress_ solo - slow5_
rec_ ⚠aux_ free - slow5_
rec_ ⚠depress_ parse - slow5_
rec_ ⚠free - Free a slow5 record.
- slow5_
rec_ ⚠fwrite - Print a read entry in the specified format to a file pointer.
- slow5_
rec_ ⚠idx_ print - slow5_
rec_ ⚠parse - slow5_
rec_ ⚠qts_ round - slow5_
rec_ ⚠set - slow5_
rec_ ⚠set_ array - slow5_
rec_ ⚠to_ mem - Get the read entry in the specified format.
- slow5_
rm_ ⚠rec - Remove a read entry at a read_id in a slow5 file while updating the SLOW5 index (not thread safe).
- slow5_
set_ ⚠exit_ condition - slow5_
set_ ⚠log_ level - Low-level API *******************************************************************************
- slow5_
set_ ⚠press - slow5_
set_ ⚠skip_ rid - slow5_
signal_ ⚠press_ version_ cmp - slow5_
str_ ⚠to_ aux_ type - slow5_
strsep ⚠ - slow5_
strtod_ ⚠check - slow5_
strtof_ ⚠check - slow5_
type_ ⚠to_ str - slow5_
vasprintf ⚠ - slow5_
version_ ⚠cmp - slow5_
write ⚠ - Writes a SLOW5 record to a SLOW5 file.
- slow5_
write_ ⚠bytes
Type Aliases§
- __
builtin_ va_ list - __
gnuc_ va_ list - __
int32_ t - __key_t
- key_t
- kh_
cstr_ t - kh_
slow5_ s2a_ t - kh_
slow5_ s2i_ t - kh_
slow5_ s2s_ t - kh_
slow5_ s2ui32_ t - kh_
slow5_ s_ t - khint32_
t - khint64_
t - khint_t
- khiter_
t - ksstr_t
- slow5_
aux_ data_ t - slow5_
aux_ meta_ t - @struct slow5_aux_meta SLOW5 auxiliary field metadata (information available in the SLOW5 header)
- slow5_
aux_ type - slow5_
cols - SLOW5 record
- slow5_
exit_ condition_ opt - slow5_
file_ meta_ t - @struct slow5_file SLOW5 file meta data
- slow5_
file_ t - @struct slow5_file SLOW5 file structure
- slow5_
fmt - @enum slow5_fmt File formats we are dealing with
- slow5_
hdr_ data_ t - @struct slow5_hdr_data SLOW5 header data (constant attributes in FAST5 files)
- slow5_
hdr_ t - @struct slow5_hdr SLOW5 header
- slow5_
idx_ t - slow5_
log_ level_ opt - slow5_
press_ method - slow5_
press_ t - slow5_
rec_ size_ t - slow5_
rec_ t - @struct slow5_rec SLOW5 record data struct (represents a single SLOW5 record)
- slow5_
rid_ len_ t - va_list