Skip to main content

A wrapper for automatic Motif Detection

Project description

AutoMotif: Automated Motif Detection in Network Graphs

What is it?

AutoMotif helps you find patterns, called motifs, in network graphs. It uses NetworkX for working with graphs, dotmotif for finding the patterns, and pandas for handling data. Whether your graphs are directed or not, AutoMotif can search for motifs based on the criteria you set, like motif size and whether to consider pattern repetitions (automorphisms).

Installation

pip install automotifs

Quick Start

from automotif import AutoMotif
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)
# Start finding motifs
motifs = motif_finder.find_all_motifs()

Features

  • Automated Detection: Find motifs in your network without manually tweaking every parameter. AutoMotif takes care of the heavy lifting.
  • Flexibility: Whether your networks are directed or undirected, AutoMotif can handle them. Plus, you can decide if you want to look for automorphisms and set the size of motifs to search for.
  • Save for Later: Directly save your findings to CSV files, making it easier to analyze results or share them with others.

Contributions

Contributions to AutoMotif are welcome! If you have suggestions for improvement or new features, feel free to open an issue or submit a pull request.

License

AutoMotif is made available under the MIT License. See the LICENSE file for more details.


Who made this?

Giorgio Micaletto, under Professor Marta Zava's supervision at Bocconi University, put together AutoMotif. It was created to make network motif analysis less of a headache.

Contacts:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automotifs-1.0.2.tar.gz (6.5 kB view hashes)

Uploaded Source

Built Distribution

automotifs-1.0.2-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page