A wrapper for automatic Motif Detection
Project description
AutoMotif: Automated Motif Detection in Network Graphs
What is it?
AutoMotif streamlines the identification and cataloging of motifs within network graphs. Utilizing NetworkX for graph manipulation, dotmotif for detecting motifs, and pandas for data management, it simplifies the process of uncovering patterns across both directed and undirected networks. Users can customize searches based on motif size, directionality, executors and the treatment of automorphisms, as well as even having the option to save the results for further analysis.
Installation
pip install automotifs
Quick Start
from automotif import AutoMotif
from dotmotif import executors
import networkx as nx
# Example: A random directed graph
G = nx.gnp_random_graph(100, 0.5, directed=True)
# Set up AutoMotif
motif_finder = AutoMotif(Graph=G, size=3, directed=True, verbose=True, use_GrandISO = True)
# Start finding motifs
motifs = motif_finder.find_all_motifs()
# Calculate the Z-Score for the motifs
z_scores = motif_finder.calculate_zscore(num_random_graphs = 30, Executor = executors.NetworkXExecutor)
Features
- Automated Detection: AutoMotif automates the detection of motifs, eliminating the need for manual parameter adjustments. It's designed to be efficient and user-friendly, allowing researchers to focus more on analysis and less on setup.
- Flexible and Powerful: Capable of handling both directed and undirected graphs, AutoMotif provides flexibility in defining motifs, including size and whether to consider automorphisms, ensuring a broad applicability across different types of network analyses.
- Data Organization and Export: Directly save your motifs to CSV files for easy access, further analysis, or sharing with your team or research community.
- Z-Score Calculation: Assess the statistical significance of detected motifs by calculating their Z-scores, providing insights into the rarity or commonality of patterns within your network compared to random expectations.
Contributions
We encourage contributions to AutoMotif! If you have ideas for improvements or new features, don't hesitate to open an issue or submit a pull request on our repository.
License
AutoMotif is made available under the MIT License. See the LICENSE file for more details.
Who made this?
AutoMotif was developed by Giorgio Micaletto under the guidance of Professor Marta Zava at Bocconi University. This tool is designed to simplify and facilitate the complex process of network motif analysis. Contacts:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for automotifs-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8386789b7486b69d832793c82db0032617813b7f37c67740600086ee9d43674e |
|
MD5 | 842d985e89770d444c9d7cb9d54217de |
|
BLAKE2b-256 | 4b7d42d59df23c43b06f09cba7fc63b72c0b77190277af68b580c006c5e5d205 |