Skip to main content

Network clustering operations (for geophysical fluid transport)

Project description

PyPI version

netclop

NETwork CLustering OPerations (for geophysical fluid transport).

netclop is a command-line interface for constructing network models of geophysical fluid transport and performing associated clustering operations (e.g., community detection and significance clustering).

Robust cores of sea scallop connectivity community structure in the Northwest Atlantic UpSet plot showing core coalescence and stability in the landscape of degenerate community structure

Features

  • Binning of Lagrangian particle simulations using H3
  • Network construction of LPT connectivity
  • Community detection using Infomap
  • Network resampling and recursive significance clustering
  • Node centrality calculation
  • Spatially-embedded network visualization

About

netclop was created as a CLI to facilitate network-theoretic analysis of marine connectivity in support of larval ecology. It functions as a library to computations on network ensembles. Developed at the Department of Engineering Mathematics and Internetworking, Dalhousie University by Karsten N. Economou.

Papers

Usage

CLI

netclop accepts Lagrangian particle tracking (LPT) simulations decomposed into initial and final positions in as .csv structured as

initial_latitude,initial_longitude,final_latitude,final_longitude

as an input. Recursive significance clustering is run on all provided filepaths of LPT position files and stores all produced content in the specified output directory

netclop rsc [OPTIONS] [PATHS] -o [DIRECTORY]

If one LPT position file is given, it will be bootstrapped; otherwise, each LPT position file is treated as an observation.

Significance clustering

Significance clustering can be run on a networkx.Graph object directly, which will partition and bootstrap

from netclop import NetworkEnsemble
ne = NetworkEnsemble(net, **ne_config)
ne.sigclu(**sc_config)
cores = ne.cores

or on an ensemble of partitions

from netclop import SigClu
sc = SigClu(partitions, **sc_config)
sc.run()
cores = sc.cores

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-2.2.0.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netclop-2.2.0-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file netclop-2.2.0.tar.gz.

File metadata

  • Download URL: netclop-2.2.0.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.0.0

File hashes

Hashes for netclop-2.2.0.tar.gz
Algorithm Hash digest
SHA256 06a3c89cb39cba66684c10c51bbae415a5b6ae2d5ce5e670ca757d6efff4f5f5
MD5 be15a973441d761dcafbd762f39e78b6
BLAKE2b-256 c6c9aefb569f548fed8625c58f5a0b68926875e432391f20a22282b75060a046

See more details on using hashes here.

File details

Details for the file netclop-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: netclop-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.0 Darwin/24.0.0

File hashes

Hashes for netclop-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51cd620a4b5bfc234f671b2241425733f4b08cb04df3133bffaf0335f8069dd8
MD5 e3e2a98d2d5dca9707a579821004b0f6
BLAKE2b-256 dfb918c3d5938f150d838a173b656f91eee5bb317db08c98960bed399b4f662a

See more details on using hashes here.

Supported by

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