{"library":"logomaker","title":"Logomaker","description":"Logomaker is a Python package designed for creating high-quality sequence logos. It provides a flexible API for generating, styling, and customizing logos from sequence matrices (e.g., position-weight matrices or information matrices). The current version is 0.8.7, and the library is actively maintained with releases addressing bugs and adding features.","language":"python","status":"active","last_verified":"Fri Apr 17","install":{"commands":["pip install logomaker"],"cli":null},"imports":["from logomaker import Logo","from logomaker import get_example_matrix"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import logomaker\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\n# Load an example matrix (e.g., position-weight matrix)\n# This returns a pandas DataFrame\nexample_df = logomaker.get_example_matrix('ww_matrix')\n\n# Create a Logo object from the DataFrame\nlogo = logomaker.Logo(example_df)\n\n# Customize the logo (optional)\nlogo.style_spines(visible=False)\nlogo.style_xticks(rotation=90, fmt='%d', anchor=0)\nlogo.highlight_position(p=6, color='gold')\nlogo.ax.set_ylabel('Information (bits)')\nlogo.ax.set_xlabel('Position')\nlogo.ax.set_title('RNA Binding Protein WW Domain Logo')\n\nplt.tight_layout()\nplt.show()","lang":"python","description":"This quickstart demonstrates how to load an example sequence matrix, create a `Logo` object, and apply basic styling before displaying the logo using Matplotlib.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}