slow5_open

Function slow5_open 

Source
pub unsafe extern "C" fn slow5_open(
    pathname: *const c_char,
    mode: *const c_char,
) -> *mut slow5_file_t
Expand description

Open a slow5 file with a specific mode given it’s pathname.

Attempt to guess the file’s slow5 format from the pathname’s extension. Return NULL on error.

If successful, return a slow5 file structure with the header parsed. slow5_close() should be called when finished with the structure.

@param pathname relative or absolute path to slow5 file @param mode “r” for reading, “w” for writing a new file, “a” for appending to an existing file @return slow5 file structure