Skip to content

Commit

Permalink
Doc string
Browse files Browse the repository at this point in the history
  • Loading branch information
vianamp committed Apr 6, 2024
1 parent 58f02bc commit 00a8304
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions aicscytoparam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ def load_image_and_align_based_on_shape_library(path, library, nuc_channel=1):


def get_voxelized_image_of_mean_shape(vec: List, coeffs_mem: List, coeffs_nuc: List, return_meshes=False):
"""
Get the voxelized image of the mean shape
Parameters
----------
vec: List
list of displacement vectors of nuclear centroid relative to cell centroid
coeffs_mem: List
list of membrane coefficients
coeffs_nuc: List
list of nuclear coefficients
return_meshes: bool
return the meshes
Returns
-------
avg_image: np.ndarray
voxelized image of the mean shape
"""
vec = np.array(vec).mean(axis=0)
df_coeffs_mem = pd.DataFrame(coeffs_mem)
df_coeffs_nuc = pd.DataFrame(coeffs_nuc)
Expand Down

0 comments on commit 00a8304

Please sign in to comment.