API reference
Public classes and functions in tglow-core v0.2.0, grouped by module, with their
arguments and default values. Descriptions are the first paragraph of each
docstring; entries without one are listed with their signature only. Names
starting with an underscore are omitted, as are the tglow.qc modules, which
are internal to the tglow-pipeline QC report.
Import from the full module path, for example:
tglow.io.compound_image_provider
memory_usage
class CompoundImageProvider
tglow.io.image_query
Small utility for representing a plate/well/field/channel/plane query.
class ImageQuery
Container for plate/row/col/field/channel/plane identifiers.
tglow.io.perkin_elmer_parser
class PerkinElmerParser (object)
Parse PerkinElmer Index XML into a easy to access dictionary
tglow.io.processed_image_provider
Higher-level processed image provider.
class ProcessedImageProvider
Builds processed image stacks for a plate.
tglow.io.tglow_io
I/O helpers for tglow: readers, writers and index helpers.
class NamedImageQuery (ImageQuery)
Image query with an index that convers string names to indices
class IndexedImageReader
Read raw image data from a dictionary of /plate/row/col/field/channel/plane/path_to_file.tiff
class PerkinElmerRawReader (IndexedImageReader)
Read raw image data from a PerkinElmer export or from a re-formatted output as long as it has an index file
class AICSImageReader
Reads image data from ome tiffs in a folder structure /plate/row/col/field.ome.tiff where field.ome.tiff is a CZYX array
class BlacklistReader
class ControlRecord
class ControllistReader
class AICSImageWriter
Writes image data from ome tiffs in a folder structure /plate/row/col/field.ome.tiff where field.ome.tiff is a CZYX array
tglow.utils.tglow_plot
composite_images
plot_registration_imgs
plot_grey_as_magma
plot_blobs
plot_histogram
Create and save a histogram to a file.
plot_histogram_df
Create and save histograms for each column in a pandas DataFrame with mean and median lines.
tglow.utils.tglow_utils
Utility helpers for tglow.
class NpEncoder (json.JSONEncoder)
JSON encoder that understands numpy types.
get_channel_channel_info
Extract channel metadata from a PerkinElmer Index.xml file.
build_well_index
default_to_regular
Convert nested defaultdicts into regular dicts recursively.
float_to_16bit_unint_scaled
Scale and convert a float matrix into uint16 using a provided max.
float_to_16bit_unint
float_to_16bit_unint_inplace
In-place conversion of floats to uint16 with rounding and clipping.
float_to_32bit_unint
dict_to_str
Return a compact string describing a dict's keys and value types.
write_bin
Write a numeric matrix to a simple binary format.
apply_registration
Apply a 2D affine transformation to a 2D/3D/4D image stack.
apply_registration_cv
sigmoid
sigmoid_params
Compute the bias and slope for a logistic sigmoid given two x points and a tolerance.
rescale_stack
Apply per-channel scale factors (optionally sigmoid-weighted) to a CZYX stack, returned as a new float32 array.
rescale_stack_inplace
Apply per-channel scale factors (optionally sigmoid-weighted) to a CZYX stack in place, returned as float32.
load_flatfield_profile
Read the flatfield/darkfield/baseline arrays from a BaSiC.save_model directory.
save_flatfield_profile
Write flatfield/darkfield/baseline arrays in the same on-disk format as BaSiC.save_model.