MD Analyzer (Solution, Membrane) ================================ The MD Analyzer runs trajectory analysis on a completed Solution or Membrane Simulator project. Two analyzer types are available: * **Solution Builder Analyzer** — for Solution Simulator results * **Membrane Builder Analyzer** — for Membrane Simulator results For Free Energy Simulator results, see :doc:`afes_analyzer`. The general workflow is: #. Connect to the server and authenticate. #. Find your completed simulator project and copy its ID. #. Create an analyzer linked to that project. #. Choose which analyses to run. #. Submit the job. #. Inspect or download the results. .. contents:: Sections :local: :depth: 2 ---- .. _analyzer-connect: Connect and Authenticate ------------------------- All analyzer types start with the same setup:: import molcube as mc from molcube.analyzer import AnalyzerWorkspace molcube = mc.API('localhost', 8000) molcube.authenticate(api_token="your_api_key") Replace ``"your_api_key"`` with your actual API key. If you are connecting to the MolCube Apps server instead of a local server, use ``mc.API('api.molcube.com', 443)``. ---- Find Analyzer Projects ---------------------- List analyzer projects with ``search_analyzer_projects()``:: projects_response = molcube.search_analyzer_projects( workspace="personal", page=1, perPage=20, projectType="analyzer", projectStatus="Success", ) projects = projects_response["projects"] Use ``projectType="analyzer"`` to include all analyzer project types, or pass a specific analyzer type such as ``"Solution Analyzer"``. The response is paginated and includes ``projects``, ``totalPages``, ``currentPage``, ``totalCount``, ``hasNext``, and ``hasPrevious``. To find completed simulator projects that can be used as analyzer inputs, use ``search_available_projects(availableCategory="analyzer")`` instead. ---- Solution Builder Analyzer -------------------------- Overview ^^^^^^^^ The Solution Builder Analyzer runs analysis on a completed **Solution Simulator** project. You choose which measurements to compute and over what time range. **System Dimensions** is the only required option — all others are optional. Create an Analyzer ^^^^^^^^^^^^^^^^^^ :: import molcube as mc from molcube.analyzer import ( AnalyzerWorkspace, Clustering, InteractionPatternGroupType, LinkageMethod, PositionTimeSeries, RDFGroup, Selection, UseComMode, ) molcube = mc.API('localhost', 8000) molcube.authenticate(api_token="your_api_key") simulator_project_id = "9761b8b6-25bd-45cc-b45f-0813a281d3b3" analyzer = molcube.create_analyzer_project(project_pk=simulator_project_id) # Clear any previous settings and name this analysis analyzer.reset_options() analyzer.set_basic_info(analyzer_name="SB_ANALYZER_PROJECT") # Set up your time range start_time = 0.0 full_trajectory_end = analyzer.config.simulator_time # full trajectory length in ns ``set_basic_info`` arguments: * ``analyzer_name`` (str): a name for this analysis run. * ``workspace`` (optional): ``AnalyzerWorkspace.PERSONAL`` (default, private) or ``AnalyzerWorkspace.TEAM`` (shared with your team). * ``md_engine`` (optional): MD engine used for analysis. Accepted values: ``"openmm"`` (default), ``"amber"``, ``"gromacs"``, ``"blade"``. When omitted, the engine is inferred automatically from the simulator project. Selecting Atoms ^^^^^^^^^^^^^^^ Most analysis options require you to specify which atoms to measure using a ``Selection``. A ``Selection`` takes up to three fields: * ``segment``: the chain name, e.g. ``"PROT_A"``. Use ``"PROT*"`` to include all protein chains at once. * ``residue_id`` *(optional)*: the residue number. * ``atom_name`` *(optional)*: the atom type, e.g. ``"CA"`` for alpha-carbon. Common segment names: * ``"PROT_A"``, ``"PROT_B"``, … — individual protein chains * ``"PROT*"`` — all protein chains (wildcard) * ``"HETE_A"`` — ligand chain * ``"SOLV"`` — water * ``"IONS"`` — ion atoms Examples:: Selection(segment="PROT*", atom_name="CA") # all Cα atoms in every protein chain Selection(segment="PROT_A", residue_id=30, atom_name="N") # nitrogen of residue 30 in chain A Selection(segment="HETE_A") # all atoms in the ligand chain Analysis Options ^^^^^^^^^^^^^^^^ System Dimensions *(required)* """"""""""""""""""""""""""""""" Tracks the simulation box size (x/y/z lengths and angles) over time. **This must always be included.**:: analyzer.set_system_dimensions(start=start_time, end=full_trajectory_end) Distance *(optional)* """""""""""""""""""""" Measures the distance between two atom groups over time. Call this method multiple times to add more than one distance measurement:: analyzer.add_distance_group( Selection(segment="PROT_A", residue_id=1, atom_name="CA"), Selection(segment="PROT_B", residue_id=1, atom_name="CA"), start=start_time, end=full_trajectory_end, pbc=True, ) * The first two arguments are the two atom groups to measure between. * ``pbc`` (bool): accounts for the periodic simulation box. Must be ``True`` (default); ``pbc=False`` is not currently supported and is rejected on submit. Angle *(optional)* """"""""""""""""""" Calculates the angle formed by three atoms over time. Call multiple times to add more angle measurements:: analyzer.add_angle_group( Selection(segment="PROT_A", residue_id=30, atom_name="N"), Selection(segment="PROT_A", residue_id=30, atom_name="CA"), Selection(segment="PROT_A", residue_id=30, atom_name="C"), start=start_time, end=full_trajectory_end, ) * Provide exactly **three** atom selections. The middle one is the vertex of the angle. Dihedral Angle *(optional)* """"""""""""""""""""""""""""" Measures the torsion angle defined by four atoms over time. Call multiple times to add more dihedral measurements:: analyzer.add_dihedral_angle_group( Selection(segment="PROT_A", residue_id=27, atom_name="CA"), Selection(segment="PROT_A", residue_id=28, atom_name="CA"), Selection(segment="PROT_B", residue_id=29, atom_name="CA"), Selection(segment="PROT_B", residue_id=30, atom_name="CA"), start=start_time, end=8.8, ) * Provide exactly **four** atom selections in sequence. RMSD *(optional)* """""""""""""""""" Measures how much the structure changes from a reference over time (Root Mean Square Deviation):: analyzer.set_rmsd( target_group=Selection(segment="PROT*", atom_name="CA"), align_group=Selection(segment="PROT*", atom_name="CA"), start=start_time, end=full_trajectory_end, ref_pdb=False, ) * ``target_group``: atoms whose movement you want to measure. * ``align_group``: atoms used to align each frame before measuring. * ``ref_pdb=False`` (default): compare to the first trajectory frame. * ``ref_pdb=True``: compare to the original input PDB structure. RMSF *(optional)* """""""""""""""""" Measures the average fluctuation of each residue over time (Root Mean Square Fluctuation). Larger values indicate more flexible regions:: analyzer.set_rmsf( target_group=Selection(segment="PROT*", atom_name="CA"), align_group=Selection(segment="PROT*", atom_name="CA"), start=start_time, end=full_trajectory_end, ref_pdb=True, ) * Arguments are the same as RMSD. Interaction Pattern *(optional)* """""""""""""""""""""""""""""""""" Counts how often two regions of the system are in contact during the simulation. Call multiple times to add more interaction measurements:: analyzer.add_interaction_pattern_group( group_type=InteractionPatternGroupType.SEGMENT, selection=Selection(segment="PROT_A"), target_group=Selection(segment="PROT*"), start=start_time, end=full_trajectory_end, cutoff=5.0, ) * ``group_type``: how to group the contacts. * ``InteractionPatternGroupType.SEGMENT`` — groups by chain (segment name) * ``InteractionPatternGroupType.SEGID`` — groups by segment ID string * ``InteractionPatternGroupType.RESIDUE`` — groups by individual residue number * ``InteractionPatternGroupType.RESNAME`` — groups by residue name (e.g. ``"LIG"``) * ``InteractionPatternGroupType.ALL`` — treats the entire selection as one group * ``selection``: the region you are analyzing. * ``target_group``: the region it is measured against. * ``cutoff`` (float): distance in Å within which two atoms are considered "in contact" (default: ``5.0``). Secondary Structure *(optional)* """""""""""""""""""""""""""""""""" Tracks which regions of the protein are in a helix, sheet, or loop at each frame:: analyzer.set_secondary_structure( group=Selection(segment="PROT*"), start=start_time, end=full_trajectory_end, ) Clustering *(optional)* """"""""""""""""""""""""" Groups trajectory frames by structural similarity. Frames that look alike are placed in the same cluster, giving you a set of representative snapshots:: analyzer.set_clustering( clustering=Clustering( target_group=Selection(segment="PROT*", atom_name="CA"), align_group=Selection(segment="PROT*", atom_name="CA"), write_group=Selection(segment="PROT*"), linkage_method=LinkageMethod.SINGLE, cutoff=2.0, ), start=start_time, end=full_trajectory_end, ) ``Clustering`` arguments: * ``target_group``: atoms used to compare frames to each other. * ``align_group``: atoms used to align frames before comparing. * ``write_group``: atoms saved in the output structure file for each cluster representative. * ``linkage_method``: ``LinkageMethod.SINGLE``, ``LinkageMethod.COMPLETE``, or ``LinkageMethod.AVERAGE``. * ``cutoff`` (float): similarity threshold in Å — smaller values create more clusters. Protein-Ligand Interaction Pattern *(optional)* """"""""""""""""""""""""""""""""""""""""""""""""" Identifies which protein residues interact with a ligand during the simulation:: analyzer.set_protein_ligand_interaction_pattern( protein_group=Selection(segment="PROT*", atom_name="CA"), ligand_group=Selection(segment="PROT_A", residue_id=30, atom_name="CA"), start=start_time, end=full_trajectory_end, ) * ``protein_group``: the protein atoms. * ``ligand_group``: the ligand atoms. Radius of Gyration *(optional)* """"""""""""""""""""""""""""""""" Measures the overall compactness of the selected structure over time. A smaller radius indicates a more compact (folded) structure:: analyzer.set_radius_of_gyration( group=Selection(segment="PROT*"), start=start_time, end=full_trajectory_end, ) SASA *(optional)* """""""""""""""""" Measures how much of the selected atoms are exposed to water over time (Solvent Accessible Surface Area):: analyzer.set_sasa( group=Selection(segment="PROT*"), start=start_time, end=full_trajectory_end, ) Interaction Energy *(optional)* """"""""""""""""""""""""""""""""" Computes the interaction energy between two atom groups over time. Set ``gbsa=True`` to add a GBSA solvation term:: analyzer.set_interaction_energy( group_atomA=Selection(segment="PROT_A"), group_atomB=Selection(segment="PROT_B"), gbsa=False, start=start_time, end=full_trajectory_end, ) * ``group_atomA`` / ``group_atomB``: the two groups to measure the interaction between. * ``gbsa`` *(optional)*: include a GBSA solvation term (default: ``False``). RDF *(optional)* """"""""""""""""" Computes how the density of one atom group varies with distance from another (Radial Distribution Function):: analyzer.set_rdf( group1=RDFGroup( selection=Selection(segment="PROT_A", residue_id=1, atom_name="CA"), use_com=UseComMode.FRAGMENT, use_whole=True, ), group2=RDFGroup( selection=Selection(segment="PROT_A", residue_id=1, atom_name="CA"), use_com=UseComMode.NONE, use_whole=False, ), start=start_time, end=full_trajectory_end, bins=50, rdf_range_start=0.0, rdf_range_end=10.0, ) ``RDFGroup`` arguments: * ``selection``: the atom group. * ``use_com``: how to define the position of each molecule. ``UseComMode.NONE`` (per-atom), ``UseComMode.RESIDUE``, ``UseComMode.FRAGMENT``, or ``UseComMode.ALL`` (center of the whole group). * ``use_whole`` (bool): if ``True``, reassemble molecules that span the periodic box boundary. ``set_rdf`` additional arguments: * ``bins`` (int): number of distance bins in the histogram. * ``rdf_range_start`` / ``rdf_range_end`` (float): distance range in Å (not a time range). Must satisfy ``0 <= start <= end <= 100``. Position Time Series *(optional)* """"""""""""""""""""""""""""""""""" Records the position of each selected atom (or group center) at every frame:: analyzer.set_position_time_series( position_time_series=PositionTimeSeries( group=Selection(segment="PROT*", atom_name="CA"), use_com=UseComMode.RESIDUE, use_whole=True, ), start=start_time, end=full_trajectory_end, ) ``PositionTimeSeries`` arguments: * ``group``: the atoms whose positions are recorded. * ``use_com``: same options as in RDF. * ``use_whole`` (bool): if ``True``, reassemble molecules that span the periodic box boundary. MSD *(optional)* """""""""""""""" Measures the mean squared displacement of a selected atom group over time. Use this to quantify how far the group moves from its initial position:: analyzer.set_msd( group=Selection(segment="PROT*", atom_name="CA"), start=start_time, end=full_trajectory_end, ) * ``group``: the atoms whose displacement is measured. Preview, Submit, and Download ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Before submitting, review the full configuration that will be sent to the server:: print(analyzer.preview_yaml()) Submit the job. The analyzer project ID is printed automatically and also returned:: >>> analyzer.submit_project() analyzer_project_id: bb8ba120-356a-4c66-bfc2-3a805e1734df 'bb8ba120-356a-4c66-bfc2-3a805e1734df' After the job finishes, retrieve the results. The available result field names are printed automatically:: >>> result = analyzer.get_result() Available result fields: SystemDimensions, Distance, Angle, DihedralAngle, ... Access each result by name:: result.SystemDimensions result.RMSD Download the output archive to the current directory:: analyzer.download_project() Cancel a running job:: analyzer.stop_project() ---- Membrane Builder Analyzer -------------------------- Overview ^^^^^^^^ The Membrane Builder Analyzer runs analysis on a completed **Membrane Simulator** project. It supports the same options as the Solution Builder Analyzer, plus several analyses specific to membrane systems. **System Dimensions** is always required. (Membrane Centering is not yet enabled at submit time — see the note in that section below.) Create an Analyzer ^^^^^^^^^^^^^^^^^^ :: import molcube as mc from molcube.analyzer import ( AnalyzerWorkspace, Clustering, InteractionPatternGroupType, LinkageMethod, PositionTimeSeries, RDFGroup, Selection, UseComMode, ) molcube = mc.API('localhost', 8000) molcube.authenticate(api_token="your_api_key") simulator_project_id = "fb03caff-d25a-4e47-8006-702eb07b8b08" analyzer = molcube.create_analyzer_project(project_pk=simulator_project_id) analyzer.reset_options() analyzer.set_basic_info(analyzer_name="MB_ANALYZER_PROJECT") start_time = 0.0 full_trajectory_end = analyzer.config.simulator_time Selecting Atoms ^^^^^^^^^^^^^^^ The same ``Selection`` syntax applies as in the Solution Builder Analyzer. For membrane systems, the following additional segment names are available: * ``"MEMB"`` — membrane lipid atoms * ``"IONS"`` — ion atoms (e.g., ``atom_name="POT"`` for potassium) * ``"GLYC_*"`` — glycan chains attached to the protein * ``"HETE_*"`` — heteroatom chains (ligands) Examples:: Selection(segment="MEMB", residue_id="1", atom_name="P") # phosphorus of the membrane Selection(segment="MEMB", residue_id="1", atom_name="N") # nitrogen head group Selection(segment="IONS", residue_id="1", atom_name="POT") # potassium ion Analysis Options ^^^^^^^^^^^^^^^^ Membrane Centering *(optional)* """""""""""""""""""""""""""""""" Repositions each frame so the membrane stays at the center of the box. .. note:: The backend currently accepts only ``membrane_centering: false`` in the ``Initialize`` block, so this option cannot be enabled at submit time yet. ``set_membrane_centering()`` accepts ``membrane_group`` / ``solvent_group`` for forward compatibility, but only the ``membrane_centering`` flag itself is sent to the backend — the group selections are not forwarded. Calling it with ``enabled=True`` produces ``membrane_centering: True``, which the backend rejects. Leave this option unset (or ``enabled=False``) until backend support lands. :: analyzer.set_membrane_centering( enabled=False, membrane_group=Selection(segment="MEMB", residue_id="1", atom_name="N"), solvent_group=Selection(segment="PROT_B", residue_id="340", atom_name="CA"), ) * ``enabled`` (bool): activate centering. Must be ``False`` for now (see note above). * ``membrane_group``: a lipid head-group atom representing the membrane plane (e.g., nitrogen ``N`` or phosphorus ``P``). Accepted but not currently forwarded. * ``solvent_group``: a protein atom used as the fixed reference point. Accepted but not currently forwarded. The emitted YAML contains only the ``membrane_centering`` flag:: Initialize: membrane_centering: False System Dimensions *(required)* """"""""""""""""""""""""""""""" Tracks the simulation box size over time. **Always include this.**:: analyzer.set_system_dimensions(start=start_time, end=full_trajectory_end) Distance *(optional)* """""""""""""""""""""" Measures the distance between two atom groups over time. Call multiple times to add more measurements. In membrane systems, you can select membrane atoms as one of the groups:: analyzer.add_distance_group( Selection(segment="PROT*", atom_name="CA"), Selection(segment="MEMB", residue_id="1", atom_name="P"), start=start_time, end=full_trajectory_end, pbc=True, ) * ``pbc`` (bool): accounts for the periodic simulation box. Must be ``True`` (default); ``pbc=False`` is not currently supported and is rejected on submit. Angle *(optional)* """"""""""""""""""" Calculates the angle formed by three atoms over time. Call multiple times to add more measurements:: analyzer.add_angle_group( Selection(segment="PROT*", atom_name="CA"), Selection(segment="PROT*", atom_name="backbone"), Selection(segment="PROT*"), start=start_time, end=full_trajectory_end, ) * Provide exactly **three** atom selections. The middle one is the vertex. Dihedral Angle *(optional)* """"""""""""""""""""""""""""" Measures the torsion angle defined by four atoms over time. Call multiple times to add more measurements:: analyzer.add_dihedral_angle_group( Selection(segment="PROT_A", residue_id="1", atom_name="CA"), Selection(segment="PROT_B", residue_id="340", atom_name="backbone"), Selection(segment="MEMB", residue_id="1", atom_name="N"), Selection(segment="IONS", residue_id="1", atom_name="POT"), start=start_time, end=full_trajectory_end, ) * Provide exactly **four** atom selections in sequence. RMSD *(optional)* """""""""""""""""" Measures structural deviation from a reference frame over time:: analyzer.set_rmsd( target_group=Selection(segment="PROT_A", residue_id="1", atom_name="CA"), align_group=Selection(segment="HETE_A", residue_id="401", atom_name="C1"), start=start_time, end=full_trajectory_end, ref_pdb=False, ) * ``target_group``: atoms whose deviation is measured. * ``align_group``: atoms used to align each frame before measuring. * ``ref_pdb=False`` (default): compare to the first frame. * ``ref_pdb=True``: compare to the original input PDB. RMSF *(optional)* """""""""""""""""" Measures the average fluctuation of each residue over time:: analyzer.set_rmsf( target_group=Selection(segment="PROT*"), align_group=Selection(segment="HETE_A", residue_id="401", atom_name="C1"), start=start_time, end=full_trajectory_end, ref_pdb=False, ) * Arguments are the same as RMSD. Interaction Pattern *(optional)* """""""""""""""""""""""""""""""""" Counts contact frequency between two regions. Call multiple times to add more measurements:: analyzer.add_interaction_pattern_group( group_type=InteractionPatternGroupType.SEGMENT, selection=Selection(segment="MEMB", residue_id="1", atom_name="N"), target_group=Selection(segment="MEMB", residue_id="1", atom_name="N"), start=start_time, end=full_trajectory_end, cutoff=5.0, ) * ``group_type``: how to group the contacts. * ``InteractionPatternGroupType.SEGMENT`` — by chain (segment name) * ``InteractionPatternGroupType.SEGID`` — by segment ID string * ``InteractionPatternGroupType.RESIDUE`` — by individual residue number * ``InteractionPatternGroupType.RESNAME`` — by residue name * ``InteractionPatternGroupType.ALL`` — treats the entire selection as one group * ``selection``: the region you are analyzing. * ``target_group``: the region it is measured against. * ``cutoff`` (float): contact distance threshold in Å (default: ``5.0``). Secondary Structure *(optional)* """""""""""""""""""""""""""""""""" Tracks helix, sheet, and loop assignments for each protein residue over time:: analyzer.set_secondary_structure( group=Selection(segment="PROT_A", residue_id="2", atom_name="CA"), start=start_time, end=full_trajectory_end, ) Clustering *(optional)* """"""""""""""""""""""""" Groups trajectory frames by structural similarity:: analyzer.set_clustering( clustering=Clustering( target_group=Selection(segment="PROT*", atom_name="CA"), align_group=Selection(segment="MEMB", residue_id="1", atom_name="N"), write_group=Selection(segment="HETE_A", residue_id="401", atom_name="C1"), linkage_method=LinkageMethod.SINGLE, cutoff=2.0, ), start=start_time, end=full_trajectory_end, ) ``Clustering`` arguments: * ``target_group``: atoms used to compare frames to each other. * ``align_group``: atoms used to align frames before comparing. * ``write_group``: atoms saved in each cluster representative structure file. * ``linkage_method``: ``LinkageMethod.SINGLE``, ``COMPLETE``, or ``AVERAGE``. * ``cutoff`` (float): similarity threshold in Å. Protein-Ligand Interaction Pattern *(optional)* """"""""""""""""""""""""""""""""""""""""""""""""" Identifies which protein residues interact with a ligand:: analyzer.set_protein_ligand_interaction_pattern( protein_group=Selection(segment="PROT_A", residue_id="1", atom_name="CA"), ligand_group=Selection(segment="HETE_A"), start=start_time, end=full_trajectory_end, ) Radius of Gyration *(optional)* """"""""""""""""""""""""""""""""" Measures the compactness of a selected group over time:: analyzer.set_radius_of_gyration( group=Selection(segment="GLYC_E", residue_id="601", atom_name="C1"), start=start_time, end=full_trajectory_end, ) SASA *(optional)* """""""""""""""""" Measures the solvent-exposed surface area of the selected atoms over time:: analyzer.set_sasa( group=Selection(segment="PROT_A", residue_id="2", atom_name="CA"), start=start_time, end=full_trajectory_end, ) Interaction Energy *(optional)* """"""""""""""""""""""""""""""""" Computes the interaction energy between two atom groups over time. Set ``gbsa=True`` to add a GBSA solvation term:: analyzer.set_interaction_energy( group_atomA=Selection(segment="PROT_A"), group_atomB=Selection(segment="PROT_B"), gbsa=False, start=start_time, end=full_trajectory_end, ) * ``group_atomA`` / ``group_atomB``: the two groups to measure the interaction between. * ``gbsa`` *(optional)*: include a GBSA solvation term (default: ``False``). RDF *(optional)* """"""""""""""""" Computes the Radial Distribution Function between two atom groups. In membrane systems, this is commonly used to analyze water distribution around the protein or lipid head groups (``atom_name="OH2"`` for water oxygen):: analyzer.set_rdf( group1=RDFGroup( selection=Selection(segment="PROT_A", residue_id="1", atom_name="CA"), use_com=UseComMode.ALL, use_whole=True, ), group2=RDFGroup( selection=Selection(segment="SOLV", residue_id="1", atom_name="OH2"), use_com=UseComMode.NONE, use_whole=False, ), start=start_time, end=full_trajectory_end, bins=50, rdf_range_start=0.0, rdf_range_end=10.0, ) ``RDFGroup`` arguments: * ``selection``: the atom group. * ``use_com``: position definition per molecule. ``UseComMode.NONE`` (per-atom), ``UseComMode.RESIDUE``, ``UseComMode.FRAGMENT``, or ``UseComMode.ALL`` (whole group center). * ``use_whole`` (bool): if ``True``, reassemble molecules that cross the box boundary. ``set_rdf`` additional arguments: * ``bins`` (int): number of distance bins. * ``rdf_range_start`` / ``rdf_range_end`` (float): distance range in Å (not a time range). Must satisfy ``0 <= start <= end <= 100``. Position Time Series *(optional)* """"""""""""""""""""""""""""""""""" Records the position of selected atoms at every trajectory frame:: analyzer.set_position_time_series( position_time_series=PositionTimeSeries( group=Selection(segment="PROT_A", residue_id="1", atom_name="CA"), use_com=UseComMode.RESIDUE, use_whole=True, ), start=start_time, end=full_trajectory_end, ) ``PositionTimeSeries`` arguments: * ``group``: atoms whose positions are recorded. * ``use_com``: same options as in RDF. * ``use_whole`` (bool): if ``True``, reassemble molecules that cross the box boundary. MSD *(optional)* """""""""""""""" Measures the mean squared displacement of a selected atom group over time. For membrane systems, this can track lipid, protein, solvent, or ion mobility:: analyzer.set_msd( group=Selection(segment="MEMB", atom_name="P"), start=start_time, end=full_trajectory_end, ) * ``group``: the atoms whose displacement is measured. Membrane Thickness *(optional)* """"""""""""""""""""""""""""""""" Measures the bilayer thickness over time by tracking the distance between phosphate groups in the upper and lower leaflets:: analyzer.set_membrane_thickness( group=Selection(segment="MEMB", residue_id="1", atom_name="P"), start=start_time, end=full_trajectory_end, ) * ``group``: the phosphate atoms of the membrane lipids (``atom_name="P"``). Density Profile Z *(optional)* """""""""""""""""""""""""""""""" Computes the mass density of each selected group along the Z-axis (membrane normal). Each group produces a separate density curve:: analyzer.set_density_profile_z( groups=[ Selection(segment="MEMB", residue_id="1", atom_name="P"), Selection(segment="PROT_A", residue_id="1", atom_name="CA"), ], start=start_time, end=full_trajectory_end, ) * ``groups``: a list of one or more ``Selection`` objects. Lipid Order Parameter *(optional)* """""""""""""""""""""""""""""""""""" Measures how ordered the lipid acyl tails are (deuterium order parameter, S\ :sub:`CD`). Higher values mean a more rigid, gel-like membrane; lower values mean a more fluid membrane:: analyzer.set_lipid_order_parameter( groups=[ Selection(segment="PROT_A", residue_id="1", atom_name="CA"), ], start=start_time, end=full_trajectory_end, ) * ``groups``: a list of ``Selection`` objects for the lipid tail atoms to analyze. Compressibility Modulus *(optional)* """"""""""""""""""""""""""""""""""""" Calculates the area compressibility modulus (K\ :sub:`A`) of the membrane, a measure of bilayer stiffness:: analyzer.set_compressibility_modulus( start=start_time, end=full_trajectory_end, nblock=1, temperature=300.0, ) * ``nblock`` (int): number of blocks for statistical averaging (default: ``1``). * ``temperature`` (float): simulation temperature in Kelvin. Must match the temperature used in the original simulation. Voronoi Tessellation *(optional)* """"""""""""""""""""""""""""""""""" Assigns a lateral area to each lipid molecule using 2D Voronoi tessellation. Useful for studying how the protein disturbs the surrounding lipids:: analyzer.set_voronoi_tessellation( groups=[ Selection(segment="PROT_B", residue_id="340", atom_name="CA"), ], start=start_time, end=full_trajectory_end, ) * ``groups``: a list of ``Selection`` objects (typically protein Cα atoms). Tilt Angle *(optional)* """"""""""""""""""""""""" Measures the tilt angle of the given vector(s) relative to the membrane normal over time:: analyzer.set_tilt_angle( groups=[ Selection(segment="PROT_A", atom_name="P"), Selection(segment="PROT_A", atom_name="C2"), ], start=start_time, end=full_trajectory_end, ) * ``groups``: a list of ``Selection`` objects defining the vector(s) to measure. Preview, Submit, and Download ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Review the full configuration before submitting:: print(analyzer.preview_yaml()) The YAML output includes all configured options, for example:: Initialize: membrane_centering: False SystemDimensions: time_range: [0.0, 10.0] Distance: ... Submit the job:: >>> analyzer.submit_project() analyzer_project_id: 45732bba-8dda-4731-8a09-04f5542d04a7 After the job finishes, retrieve results:: >>> result = analyzer.get_result() Available result fields: SystemDimensions, Distance, Angle, DihedralAngle, RMSD, RMSF, InteractionPattern, SecondaryStructure, Clustering, ProteinLigandInteractionPattern, RadiusOfGyration Access each result by name:: result.SystemDimensions result.MembraneThickness Download the output archive:: analyzer.download_project() Cancel a running job:: analyzer.stop_project()