Manual

All public pept subroutines are fully documented here, along with copy-pastable examples. The base functionality is summarised below; the rest of the library is organised into submodules, which you can access on the left. You can also use the Search bar in the top left to go directly to what you need.

We really appreciate all help with writing useful documentation; if you feel something can be improved, or would like to share some example code, by all means get in contact with us - or be a superhero and click Edit this page on the right and submit your changes to the GitHub repository directly!

Base Functions

pept.read_csv(filepath_or_buffer[, …])

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

pept.load(filepath)

Load a binary saved / pickled object from filepath.

pept.save(filepath, obj)

Save an object obj instance as a binary file at filepath.

Base Classes

pept.LineData(lines[, sample_size, overlap, …])

A class for PEPT LoR data iteration, manipulation and visualisation.

pept.PointData(points[, sample_size, …])

A class for general PEPT point-like data iteration, manipulation and visualisation.

pept.Pixels(pixels_array, xlim, ylim)

A class that manages a 2D pixel space, including tools for pixel traversal of lines, manipulation and visualisation.

pept.Voxels(voxels_array, xlim, ylim, zlim)

A class that manages a single 3D voxel space, including tools for voxel traversal of lines, manipulation and visualisation.

pept.Pipeline(transformers)

A PEPT processing pipeline, chaining multiple Filter and Reducer for efficient, parallel execution.

Auxilliaries

pept.TimeWindow(window)

Define a sample_size as a fixed time window / slice.