simulation.post_processing¶
Methods for processing simulations.
Module Attributes
Columns names used when sampling simulation data. |
Functions
|
Sample simulation data for select conditions and seeds at given resolution. |
|
Sample selected columns from simulation data at given resolution. |
- SAMPLE_COLUMNS: list[str] = ['xpos', 'ypos', 'zpos']¶
Columns names used when sampling simulation data.
- sample_simulation_data(bucket: str, series_name: str, condition_keys: list[str], random_seeds: list[int], n_timepoints: int, n_monomer_points: int) None [source]¶
Sample simulation data for select conditions and seeds at given resolution.
- Parameters:
bucket – Name of S3 bucket for input and output files.
series_name – Name of simulation series.
condition_keys – List of condition keys.
random_seeds – Random seeds for simulations.
n_timepoints – Number of equally spaced timepoints to sample.
n_monomer_points – Number of equally spaced monomer points to sample.
- sample_simulation_data_points(data: DataFrame, n_timepoints: int, n_monomer_points: int, sampled_columns: list[str] = ['xpos', 'ypos', 'zpos']) DataFrame [source]¶
Sample selected columns from simulation data at given resolution.
- Parameters:
data – Full simulation data.
n_timepoints – Number of equally spaced timepoints to sample.
n_monomer_points – Number of equally spaced monomer points to sample.
sampled_columns – List of column names to sample.
- Returns:
Sampled simulation data.