MDPath Tools — mdpath.mdapth_tools

This module contains the command-line interface (CLI) functions for editing and visualizing the results of MDPath analysis. All functions can be called from the command line after installation of the package.

Functions

mdpath.mdpath_tools.edit_3D_visualization_json()[source]

Edit the 3D visualization JSONS to your visualization needs from the command line.

This function provides a command-line interface (CLI) for editing 3D visualization JSON files. It supports various operations such as recoloring, scaling, and flatting the radius of the entries in the JSON file. It cann be called using ‘mdpath_json_editor’ after installation.

Command-line inputs:

-json (str): The path to the JSON file to edit for 3D visualization.

-scale (float): The factor to multiply the radius of path cylinders with.

-recolor (str): The path to the color file for 3D visualization colors.

-flat (float): Sets every radius of path cylinders to the input value.

-clusterscale (float): The maximum radius for the cluster-based scaling.

Note: Only one operation can be performed at a time. If multiple operations are specified, an error will be displayed.

Command-line usage:

$ mdpath_json_editor -json <path_to_json_file> -scale <scaling_factor_float>

$ mdpath_json_editor -json <path_to_json_file> -recolor <path_to_color_json_file>

$ mdpath_json_editor -json <path_to_json_file> -flat <flat_radius_value_float>

$ mdpath_json_editor -json <path_to_json_file> -clusterscale <scaling_factor_float>

mdpath.mdpath_tools.path_comparison()[source]

Compare Pathways of different simulations.

This function provides a command-line interface (CLI) for morphing the 3d visualization of a simulation to fit ontop of the coordinates of another simulatuion. This enables easy comparison of the pathways of different simulations. It cann be called using ‘mdpath_compare’ after installation.

Command-line inputs:
  • atop (str): The path to the file containing the residue coordinates that are used as a template.

  • bcluster (str): The path to the file containing the cluster that is morphed ontop.

Command-line usage:

$ mdpath_compare -atop <path_to_atop_file> -bcluster <path_to_bcluster_file>

mdpath.mdpath_tools.multitraj_analysis()[source]

Merge and analyze multiple trajectories.

This function provides a command-line interface (CLI) for merging and analyzing multiple trajectories. It requires the topology file of the MD simulation and a list of multiple pathways from previous analysis. The function calculates various properties of the merged pathways, clusters them, and saves the results in JSON files. It cann be called using ‘mdpath_multitraj’ after installation.

Command-line inputs:

-top (str): Topology file of your MD simulation.

-multitraj (list(str)): List of multiple pathways from previous analysis.

-cpu (int): Amount of cores used in multiprocessing.(default: half of available cores)

-closedist (float): Default distance for close residues.(default: 12.0)

Command-line usage:

$ mdpath_multitraj -top <path_to_topology_file> -multitraj <path_to_multitraj_file>

mdpath.mdpath_tools.gpcr_2D_vis()[source]

Create a 2D Visualization of Paths through a GPCR using the Ballesteros-Weinstein-System for numbering(querries gpcrdb.org for numbering).

This function provides a command-line interface (CLI) for creating a 2D visualization of paths through a GPCR. It queries gpcrdb.org for the Ballesteros-Weinstein-System numbering and assigns generic numbers to the protein atoms. Then a 2D visualization of the GPCR paths is created based on the updated cluster pathways and the specified cutoff percentage.

Command-line inputs:

-top (str): Topology file of your MD simulation

-clust (str): Pickle file with cluster pathways dictionary

-cut (float): Percentage of the top paths to visualize (default is 0 = all paths are drawn)

-num (str): Path to write the numbered structure file to (default is “./numbered_structure.pdb”)

Note: This function requires access to the internet to query gpcrdb.org for the Ballesteros-Weinstein-System numbering.

Example usage:

$ mdpath_gpcr_image -top <path_to_topology_file> -clust <path_to_cluster_pathways.pickl> -cut <cutoff_float> -num <path_where_to_save_numberd_structure>