pept.utilities
#
PEPToriented utility functions.
The utility functions include lowlevel optimised Cython functions (e.g. find_cutpoints) that are of common interest across the pept package, as well as I/O functions, parallel maps and pixel/voxel traversal algorithms.
Even though the functions are grouped in directories (subpackages) and files (modules), unlike the rest of the package, they are all imported into the pept.utilities root, so that their import paths are not too long.

Compute the cutpoints from a given array of lines. 

Compute the minimum distance points (MDPs) from all combinations of num_lines lines given in an array of lines sample_lines. 

Group the rows in a 2D data_array based on the unique values in a given column_to_separate, returning the groups as a list of numpy arrays. 
Return the number of lines (or rows) in a file. 


Read a given number of lines from a file and return a numpy array of the values. 

Read chunks of data from a file lazily, returning numpy arrays of the values. 

Utility for parallelising (read CSV chunk > process chunk) workflows. 

Fast pixel traversal for 2D lines (or LoRs). 

Fast voxel traversal for 3D lines (or LoRs). 

Class for fast, ondemand reading / parsing and iteration over chunks of data from CSV files. 