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

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 to facilitate network-theoretic analysis of marine connectivity in support of larval ecology. 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 files 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.partition()
ne.sigclu(**kwargs)
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.0.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

netclop-2.0.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: netclop-2.0.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.3 Darwin/24.0.0

File hashes

Hashes for netclop-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f8dc0777f1b70f25fee2abd504a1b9987807b9cf8b6e176df227fd7f16daa3e6
MD5 405fc88cae3444bcadf92814dfd9214e
BLAKE2b-256 ddd34eb59d730a1e1cb8060606656cbb097c108180c001d3f32bd37c88b37557

See more details on using hashes here.

File details

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

File metadata

  • Download URL: netclop-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.3 Darwin/24.0.0

File hashes

Hashes for netclop-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 392edb3204e46d2f6af4cf3e0bbcc057f6ec7ab25c2d0d3a15cd23bbf8652f1e
MD5 ab8cd864050348b0fcef1c141882d5bc
BLAKE2b-256 aa212adc0a0f71a72c4a485cd7a50d0e69fc14e327d57b8bb6a28018d3e8cc04

See more details on using hashes here.

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