Skip to content

Commit

Permalink
update compression analysis imports
Browse files Browse the repository at this point in the history
  • Loading branch information
blairlyons committed Dec 22, 2023
1 parent 3d6545c commit 700f32f
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions simularium_readdy_models/visualization/actin_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@
from simulariumio.filters import MultiplyTimeFilter
from simulariumio.readdy import ReaddyConverter, ReaddyData
from simulariumio.plot_readers import ScatterPlotReader, HistogramPlotReader
from subcell_analysis import SpatialAnnotator, CompressionAnalyzer
from subcell_analysis import SpatialAnnotator
from subcell_analysis.compression_analysis import (
get_average_distance_from_end_to_end_axis,
get_bending_energy_from_trace,
get_third_component_variance,
get_asymmetry_of_peak,
get_contour_length_from_trace,
)
from subcell_analysis.readdy import ReaddyPostProcessor, ReaddyLoader, FrameData

from ..actin import ActinAnalyzer, ActinStructure
Expand Down Expand Up @@ -422,28 +429,28 @@ def generate_actin_compression_plots(
)
for time_ix in range(total_steps):
perp_dist.append(
CompressionAnalyzer.get_average_distance_from_end_to_end_axis(
get_average_distance_from_end_to_end_axis(
polymer_trace=control_pts[time_ix][0],
)
)
bending_energy.append(
1000.0
* CompressionAnalyzer.get_bending_energy_from_trace(
* get_bending_energy_from_trace(
polymer_trace=control_pts[time_ix][0],
)
)
non_coplanarity.append(
CompressionAnalyzer.get_third_component_variance(
get_third_component_variance(
polymer_trace=control_pts[time_ix][0],
)
)
peak_asym.append(
CompressionAnalyzer.get_asymmetry_of_peak(
get_asymmetry_of_peak(
polymer_trace=control_pts[time_ix][0],
)
)
contour_length.append(
CompressionAnalyzer.get_contour_length_from_trace(
get_contour_length_from_trace(
polymer_trace=control_pts[time_ix][0],
)
)
Expand Down

0 comments on commit 700f32f

Please sign in to comment.