Skip to main content

NETwork CLustering OPerations for geophysical fluid transport

Project description

Network clustering operations

Network clustering operations (netclop) is a command line interface for geophysical fluid transport network construction and associated clustering operations (e.g., community detection, significance clustering).

Installation

Use pipx to install and run in an isolated environment.

brew install pipx
pipx ensurepath
pipx install netclop

Functions

Construct network

Particle trajectories must be decomposed into initial and final latitude and longitude coordinates in the form initial latitude,initial longitude,final latitude,final longitude. Positions are binned with h3 with specified -res.

netclop construct coords.csv -o network.csv -res [RES]

Partition network

Weighted, directed networks are represented as an edge list source node,target node,weight,normalized weight where the normalized edge weight is such that outgoing edges from each node sum to unity (or zero). Clustering is done using Infomap with -n outer-loop trials, -mt Markov time, and -s random seed.

netclop partition network.csv -o modules.csv -n [NUM TRIALS] -mt [MARKOV TIME] -s [SEED]

Plot modular structure

Modular descriptions of networks are a node list node,module,node metric 1,node metric 2,.... They can be plotted simply with

netclop plot modules.csv

Significance cluster

netclop sigclu network.csv

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

netclop-0.6.1.tar.gz (9.3 kB view hashes)

Uploaded Source

Built Distribution

netclop-0.6.1-py3-none-any.whl (11.3 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