Skip to main content

Package for analysing social-ecological networks

Project description

SESMotifAnalyser: framework for analysing social-ecological systems

This package contains a Python based framework for analysing social-ecological systems.

Documentation

A comprehensive documentation is available as PDF. Please contact t.seppelt[ÄT]posteo.de in case of any questions.

See the examples folder for examples.

Installation

The package can be installed using pip.

pip install sma

It has the following dependencies: Python 3, numpy, scipy, networkx, pandas.

On the R side it depends on statnet, reticulate (with Python 3).

ergm-userterms

In addition to the motif counting features written in Python, this repository contains ergm-userterms for some motifs, e.g. the 3-motifs I.C and II.C (closed and open triangles, respecting the social-ecological types of the nodes).

After downloading and compiling the package, ergm models can be fitted and the motif counting can be done directly in R:

netw <- network(...)

# first parameter: which sesType should the nodes at the points of the triangles have
# second parameter: name of nodel attribute
summary(netw ~ openTriangles(0, 'sesType'))

Integration in R and integrateR

The functions in this package can to some extend be called from R using the R package reticulate. An example can be found in the examples folder. See also the corresponding section in the documentation.

Mario Angst is working on an R package which provides an interface to the SESMotifAnalyser. His project integrateR can be found on Github.

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

sma-2.0.2.tar.gz (38.8 kB view hashes)

Uploaded Source

Built Distribution

sma-2.0.2-py3-none-any.whl (56.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