dlsmicro.analyze_conditions

dlsmicro.analyze_conditions.analyze_conditions(csv_name, root_folder, condition_dir, replicate_dict, T, r, erg, Laplace=False, df_save_path=None, df_file_name=None, save_as_text=True, save_as_df=True, plot_corr=False, plot_msd=False, plot_G=False, save_plots=False)[source]

Analyze files exported from Zetasizer software for multiple conditions and plot data per replicate of a condition.

Parameters:
  • csv_name (str) – Name of every csv file (all the same name)
  • root_folder (str) – Name of folder in which all files to be probed are
  • condition_dir (dictionary) – Dictionary of conditions and respective folders
  • replicate_dict (dictionary) – Dictionary of replicates for each condition
  • T (float or dictionary of float) – Temperature of the experiment/condition in Kelvin
  • r (float or dictionary of float) – Radius of particle in experiment/condition in nanometers
  • erg (boolean or dictionary of boolean) – Ergodicity in experiment/condition
  • Laplace (boolean, optional) – If True, use direct Laplace transform to find shear modulus. This is useful because it can smooth the data to noise.
  • df_save_path (str, optional) – Path to Dataframe to be saved containing results from DLS microrheology analysis. If None, path will be set to root_folder.
  • df_file_name (str, optional) – Name of Dataframe to be saved containing results from DLS microrheology analysis. If None, condition_data.pkl is default name
  • save_as_text (boolean, optional) – If True, save each element of Dataframe separately as a text file
  • save_as_df (boolean, optional) – If True, save the Dataframe
  • plot_corr (boolean, optional) – If True, show plot of the correlation function of each replicate
  • plot_msd (boolean, optional) – If True, show plot of the mean-squared displacement of each replicate
  • plot_G (boolean, optional) – If True, show plot of the shear modulus of each replicate
  • save_plots (boolean, optional) – If True, saves plots of correlation function, MSD, G