ProfileBase¶
- class maicos.core.ProfileBase(atomgroup: AtomGroup, grouping: str, bin_method: str, output: str, weighting_function: Callable, weighting_function_kwargs: None | dict, normalization: str)[source]¶
Bases:
objectBase class for computing profiles.
- Parameters:
atomgroup (MDAnalysis.core.groups.AtomGroup) – A
AtomGroupfor which the calculations are performed.grouping ({
"atoms","residues","segments","molecules","fragments"}) –Atom grouping for the calculations.
The possible grouping options are the atom positions (in the case where
grouping="atoms") or the center of mass of the specified grouping unit (in the case wheregrouping="residues","segments","molecules"or"fragments").bin_method ({
"com","cog","coc"}) –Method for the position binning.
The possible options are center of mass (
"com"), center of geometry ("cog"), and center of charge ("coc").output (str) – Output filename.
weighting_function (callable) – The function calculating the array weights for the histogram analysis. It must take an
AtomGroupas first argument and a grouping ("atoms","residues","segments","molecules","fragments") as second. Additional parameters can be given asweighting_function_kwargs. The function must return a numpy.ndarray with the same length as the number of group members.weighting_function_kwargs (dict) – Additional keyword arguments for
weighting_functionnormalization ({
"none","number","volume"}) – The normalization of the profile performed in every frame. IfNone, no normalization is performed. If number, the histogram is divided by the number of occurences in each bin. If volume, the profile is divided by the volume of each bin.
- results.profile¶
Calculated profile.
- Type:
- results.dprofile¶
Estimated profile’s uncertainity.
- Type: