LNPComposition
LNP system composition with separate core and shell layers.
User specifies total radius and fractions; counts are calculated from molecular masses, density, and geometry.
The core is built as a compressed mixed box shaped into a sphere. The shell is built from a monolayer projected onto the core surface.
Attributes
attributemodel_config= ConfigDict(extra='forbid')attributeradiusfloat= Field(..., description='Total LNP radius in Angstroms.', gt=0)attributeshell_thicknessfloat= Field(28.0, description='Estimated shell thickness in Angstroms.', gt=0)attributecoreCoreCompositionattributeshellShellCompositionattributepaddingfloat= Field(25.0, description='Solvation padding around LNP in Angstroms.', ge=0)attributeionizationIonizationConfig= Field(default_factory=IonizationConfig, description='Configuration for ionization.')attributecore_radiusfloatComputed core radius (total radius - shell thickness).
attributechargeintTotal system charge from core and shell species.
Functions
funccalculate_all_counts(self) → LNPCompositionfuncget_unique_species_for_parametrization(self) → list[Species]Get unique species by resname for parametrization (parameters are shared).
paramselfReturns
list[Species]funcget_species_with_counts(self) → list[Species]