motifcluster

Motif-based weighted spectral clustering in Python, R and Julia

https://github.com/wgunderwood/motifcluster

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.8%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Motif-based weighted spectral clustering in Python, R and Julia

Basic Info
  • Host: GitHub
  • Owner: WGUNDERWOOD
  • License: gpl-3.0
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 6.67 MB
Statistics
  • Stars: 27
  • Watchers: 5
  • Forks: 3
  • Open Issues: 0
  • Releases: 7
Created over 6 years ago · Last pushed about 2 years ago
Metadata Files
Readme License

README.md

motifcluster motifcluster sticker

Motif-based spectral clustering of weighted directed networks

CI license: GPLv3 codecov python docs R docs Julia docs

Introduction

This repository provides implementations of motif-based spectral clustering of weighted directed networks in R, Python and Julia. This code is based on methods detailed in [Underwood, Elliott and Cucuringu, 2020], which is available at arXiv:2004.01293. These packages provide the capability for:

  • Building motif adjacency matrices
  • Sampling random weighted directed networks
  • Spectral embedding with motif adjacency matrices
  • Motif-based spectral clustering

The methods are all designed to run quickly on large sparse networks, and are easy to install and use.

Branches

The main branch contains stable versions. The develop branch may be unstable, and is for development purposes only.

Authors

License

This repository and its included R, Python and Julia packages are all licensed under GPLv3.

R package

The motifcluster R package is in the R directory.

Installation

The R package can be installed from CRAN with:

install.packages("motifcluster")

Dependencies

The R package has the following dependencies, available on CRAN:

  • igraph
  • Matrix
  • RSpectra

Documentation

The package's manual is in the R/doc directory. R documentation files are provided for each function available in the package. An instructional vignette is in the R/vignettes directory.

Python package

The motifcluster Python package is in the python directory.

Installation

The Python package can be installed from PyPI with:

pip install motifcluster

Alternatively it can be installed with conda using:

conda install -c conda-forge motifcluster

Dependencies

The Python package has the following dependencies:

  • Networkx
  • Numpy
  • Scipy
  • Scikit-learn

Documentation

Full documentation is available at motifcluster.readthedocs.io.

Julia package

The MotifCluster Julia package is in the julia directory.

Installation

From the Julia General registry:

] add MotifCluster

Dependencies

  • Aqua
  • Clustering
  • Distributions
  • Graphs

Documentation

Documentation for the MotifCluster package is available on the web.

Performance

The performance directory contains scripts and plots relating to timing the construction of motif adjacency matrices, in R, Python and Julia.

Sticker

A high-resolution hexagonal sticker is available in the sticker directory.

Owner

  • Name: William Underwood
  • Login: WGUNDERWOOD
  • Kind: user
  • Location: USA
  • Company: Princeton University

PhD Student at Princeton University

GitHub Events

Total
  • Watch event: 3
Last Year
  • Watch event: 3

Committers

Last synced: over 2 years ago

All Time
  • Total Commits: 478
  • Total Committers: 4
  • Avg Commits per committer: 119.5
  • Development Distribution Score (DDS): 0.008
Past Year
  • Commits: 63
  • Committers: 3
  • Avg Commits per committer: 21.0
  • Development Distribution Score (DDS): 0.032
Top Committers
Name Email Commits
William G Underwood 4****D 474
ande a****t@g****m 2
Charles Twardy 9****y 1
CompatHelper Julia c****y@j****g 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 1
  • Total pull requests: 3
  • Average time to close issues: 4 days
  • Average time to close pull requests: about 21 hours
  • Total issue authors: 1
  • Total pull request authors: 2
  • Average comments per issue: 2.0
  • Average comments per pull request: 1.33
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 2
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • aaalissa (1)
Pull Request Authors
  • github-actions[bot] (2)
  • ctwardy (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 4
  • Total downloads:
    • pypi 700 last-month
    • cran 337 last-month
    • julia 1 total
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 21
  • Total maintainers: 2
pypi.org: motifcluster

Motif-Based Spectral Clustering of Weighted Directed Networks

  • Versions: 9
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 700 Last month
Rankings
Dependent packages count: 10.0%
Stargazers count: 12.9%
Forks count: 15.3%
Average: 16.7%
Dependent repos count: 21.7%
Downloads: 23.6%
Maintainers (1)
Last synced: 11 months ago
juliahub.com: MotifCluster

Motif-based weighted spectral clustering in Python, R and Julia

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 1 Total
Rankings
Dependent repos count: 9.8%
Forks count: 24.5%
Average: 24.7%
Stargazers count: 26.2%
Dependent packages count: 38.2%
Last synced: 11 months ago
cran.r-project.org: motifcluster

Motif-Based Spectral Clustering of Weighted Directed Networks

  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 337 Last month
Rankings
Stargazers count: 14.6%
Forks count: 14.9%
Average: 27.6%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Downloads: 43.2%
Maintainers (1)
Last synced: 11 months ago
conda-forge.org: motifcluster
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent repos count: 34.0%
Average: 47.1%
Stargazers count: 48.9%
Dependent packages count: 51.2%
Forks count: 54.2%
Last synced: 11 months ago

Dependencies

R/DESCRIPTION cran
  • R >= 3.6.0 depends
  • Matrix >= 1.2 imports
  • RSpectra >= 0.16.0 imports
  • igraph >= 1.2.5 imports
  • covr >= 3.5.0 suggests
  • knitr >= 1.28 suggests
  • mclust >= 5.4.6 suggests
  • rmarkdown >= 2.1 suggests
  • testthat >= 2.3.2 suggests
python/requirements.txt pypi
  • coverage >=4.5.4
  • networkx >=2.4
  • numpy >=1.18.3
  • pylint >=2.11.1
  • pytest-cov >=2.8.1
  • scikit-learn >=0.22.2
  • scipy >=1.4.1
python/setup.py pypi
  • networkx >=2.4
  • numpy >=1.18.3
  • scikit-learn >=0.22.2
  • scipy >=1.4.1