ActImgCollection#
Warning
This library and its documentation are still under development.
This section documents the ActImgCollection class and its methods.
ActImgCollection class and attributes#
- meshure.actimg_collection.ActImgCollection(root_path: str, res_path: str = None, only_subdirs: list[str] = None, specify_subdirs: list = None, focal_planes: pandas.core.frame.DataFrame = None)#
ActImgCollection methods#
- meshure.actimg_collection.ActImgCollection.print_summary(self, specify_subdirs=None, interact=False)#
Summary of files.
- meshure.actimg_collection.ActImgCollection.get_focal_planes(self, filepath)#
Read in focal planes.
- Parameters:
filepath (str) –
Filepath specifies a csv file with four fields (named exactly: ‘File name’, ‘Type’, ‘Basal’, ‘Cytoplasmic’, ‘Notes’). File name = name of tiff file Type = cell type, either ‘Untransduced’ or ‘CAR’ Basal = one or two comma separated integers specifying the focal plane (or focal plane [start, end])
These are converted to a list inside the function
- Cytoplasmic = one or two comma separated integers specifying the focal plane (or focal plane [start, end])
These are converted to a list inside the function
Notes = field not used by this function.
- Returns:
self.focal_planes – ???
- Return type:
pandas DataFrame
- Raises:
Warning – If the filenames in the CSV file are not unique, a warning is raised but the program is executed.
- meshure.actimg_collection.ActImgCollection.redefine_pipeline(self, new_pipeline)#
- meshure.actimg_collection.ActImgCollection.parametrise_pipeline(self, substack=None, theta=None, thetas=None, sigma=2, threshold=None, dest_dir=None)#
Fill in parameters based on function calls in pipeline.
- Parameters:
substack (list of ints) –
theta (float) –
thetas (list of floats) –
sigma (float) –
threshold (float) –
- Returns:
dict
- Return type:
- meshure.actimg_collection.ActImgCollection.run_analysis(self, visualise_as_html: bool = False, return_parameters: bool = False, save_as_single_csv: bool = True)#
Runs analysis on selected subdirs.