Contents Menu Expand
PyLipID documentation
Logo
  • Installation
  • Documentation
    • pylipid.api
      • pylipid.api.LipidInteraction.collect_residue_contacts
      • pylipid.api.LipidInteraction.compute_residue_duration
      • pylipid.api.LipidInteraction.compute_residue_occupancy
      • pylipid.api.LipidInteraction.compute_residue_lipidcount
      • pylipid.api.LipidInteraction.compute_residue_koff
      • pylipid.api.LipidInteraction.compute_binding_nodes
      • pylipid.api.LipidInteraction.compute_site_duration
      • pylipid.api.LipidInteraction.compute_site_occupancy
      • pylipid.api.LipidInteraction.compute_site_lipidcount
      • pylipid.api.LipidInteraction.compute_site_koff
      • pylipid.api.LipidInteraction.analyze_bound_poses
      • pylipid.api.LipidInteraction.compute_surface_area
      • pylipid.api.LipidInteraction.write_site_info
      • pylipid.api.LipidInteraction.show_stats_per_traj
      • pylipid.api.LipidInteraction.save_data
      • pylipid.api.LipidInteraction.save_coordinate
      • pylipid.api.LipidInteraction.save_pymol_script
      • pylipid.api.LipidInteraction.plot
      • pylipid.api.LipidInteraction.plot_logo
      • pylipid.api.LipidInteraction.dataset
      • pylipid.api.LipidInteraction.residue_list
      • pylipid.api.LipidInteraction.node_list
      • pylipid.api.LipidInteraction.lipid
      • pylipid.api.LipidInteraction.lipid_atoms
      • pylipid.api.LipidInteraction.cutoffs
      • pylipid.api.LipidInteraction.nprot
      • pylipid.api.LipidInteraction.stride
      • pylipid.api.LipidInteraction.dt_traj
      • pylipid.api.LipidInteraction.trajfile_list
      • pylipid.api.LipidInteraction.topfile_list
      • pylipid.api.LipidInteraction.resi_offset
      • pylipid.api.LipidInteraction.save_dir
      • pylipid.api.LipidInteraction.timeunit
      • pylipid.api.LipidInteraction.koff
      • pylipid.api.LipidInteraction.res_time
      • pylipid.api.LipidInteraction.koff_bs
      • pylipid.api.LipidInteraction.res_time_bs
      • pylipid.api.LipidInteraction.residue
      • pylipid.api.LipidInteraction.binding_site
    • pylipid.func
      • pylipid.func.get_node_list
      • pylipid.func.collect_bound_poses
      • pylipid.func.vectorize_poses
      • pylipid.func.calculate_scores
      • pylipid.func.write_bound_poses
      • pylipid.func.analyze_pose_wrapper
      • pylipid.func.calculate_surface_area_wrapper
      • pylipid.func.cluster_DBSCAN
      • pylipid.func.cluster_KMeans
      • pylipid.func.cal_contact_residues
      • pylipid.func.cal_occupancy
      • pylipid.func.cal_lipidcount
      • pylipid.func.Duration
      • pylipid.func.cal_koff
      • pylipid.func.cal_survival_func
      • pylipid.func.calculate_koff_wrapper
    • pylipid.plot
      • pylipid.plot.plot_koff
      • pylipid.plot.plot_residue_data
      • pylipid.plot.plot_residue_data_logo
      • pylipid.plot.plot_binding_site_data
      • pylipid.plot.plot_surface_area
      • pylipid.plot.plot_corrcoef
    • pylipid.util
      • pylipid.util.check_dir
      • pylipid.util.write_PDB
      • pylipid.util.write_pymol_script
      • pylipid.util.sparse_corrcoef
      • pylipid.util.rmsd
      • pylipid.util.get_traj_info
  • Tutorials
    • 0-Application walk thourgh
    • 1-Choose the right distance cutoffs
  • Gallery
  • Demo

pylipid.plot.plot_residue_data_logo¶

pylipid.plot.plot_residue_data_logo(residue_index, logos, interactions, gap=1000, letter_map=None, color_scheme='chemistry', ylabel=None, title=None, fn=None, fig_close=False)[source]¶

Plot interactions using logomaker.Logo.

Parameters
  • residue_index (list) – Residue indices in an ascending order. If a residue index is smaller than its preceding one, the plotting function will consider it as the start of a new chain and will plot the following data in a new figure. A gap in residue index that is less than gap will be marked as gray areas in the figure, but a gap that is larger than gap will start a new figure.

  • logos (list of str) – Single letter logos in the corresponding order as residue_index. The height of logos in the figure will be determined by values given to interactions. Three-letter name of the 20 common amino acids are accepted and will be converted to their corresponding single-letter names in this function by the default. Other mappings can be defined via letter_map.

  • interactions (list) – Plotting values in the corresponding order as residue_index.

  • gap (int, optional, default=1000) – The number of missing residues in residue_index that starts a new figure. A gap between two adjacent index in residue_index that is smaller than the provided value will be considered as missing residues and will be marked as gray areas in the figure, whereas a gap that is larger than the provided value will start a new figure and plot the following data in that new figure. This can help to make figures more compressed. The gap needs to be greater than 1000. The default is 1000.

  • letter_map (dict, optional, default=None) – A dictionary that maps provided names to single-letter logos in the form of {“provided name”: “single_letter logo”}.

  • color_scheme (str, optional, default="chemistry") – The color scheme used by logomaker.Logo(). See Color Schemes for accepted values. Default is “chemistry”.

  • ylabel (str, optional, default=None) – y axis label. Default is “Interactions”.

  • fn (str, optional, default=None) – Figure name. By default the figure is saved as “Figure_interactions_logo.pdf” as the current working directory.

  • fig_close (bool, optional, default=False) – Use plt.close() to close the figure. Can be used to save memory if many figures are opened.

Next
pylipid.plot.plot_binding_site_data
Previous
pylipid.plot.plot_residue_data
Copyright © 2020, Wanling Song | Built with Sphinx and @pradyunsg's Furo theme. | Show Source