read_idat

Functions to parse .idat files.

Most of this code comes from https://github.com/FoxoTech/methylprep

Functions

bytes_to_int(input_bytes[, signed])

Returns the integer represented by the given array of bytes.

get_file_object(filepath)

Get an opened file object.

npread(file_like, dtype, n)

Parses a binary file multiple times, allowing for control if the file ends prematurely. This replaces

read_and_reset(inner)

Decorator that resets a file-like object back to the original position after the function has been called.

read_byte(infile)

Converts a single byte to an integer value.

read_char(infile, num_bytes)

Converts an array of bytes to a string.

read_int(infile)

Converts a four-byte element to an integer value.

read_long(infile)

Converts an eight-byte element to an integer value.

read_short(infile)

Converts a two-byte element to an integer value.

read_string(infile)

Converts an array of bytes to a string.

Classes

IdatDataset(filepath[, bit])

Validates and parses an Illumina IDAT file.

IdatHeaderLocation(*values)

Unique IntEnum defining constant values for byte offsets of IDAT headers.

IdatSectionCode(*values)

Unique IntEnum defining constant values for byte offsets of IDAT headers.