recipe r-rspectral

Implements the network clustering algorithm described in Newman (2006) <doi:10.1103/PhysRevE.74.036104>. The complete iterative algorithm comprises of two steps. In the first step, the network is expressed in terms of its leading eigenvalue and eigenvector and recursively partition into two communities. Partitioning occurs if the maximum positive eigenvalue is greater than the tolerance (10e-5) for the current partition, and if it results in a positive contribution to the Modularity. Given an initial separation using the leading eigen step, 'rSpectral' then continues to maximise for the change in Modularity using a fine-tuning step - or variate thereof. The first stage here is to find the node which, when moved from one community to another, gives the maximum change in Modularity. This node’s community is then fixed and we repeat the process until all nodes have been moved. The whole process is repeated from this new state until the change in the Modularity, between the new and old state, is less than the predefined tolerance. A slight variant of the fine-tuning step, which can improve speed of the calculation, is also provided. Instead of moving each node into each community in turn, we only consider moves of neighbouring nodes, found in different communities, to the community of the current node of interest. The two steps process is repeatedly applied to each new community found, subdivided each community into two new communities, until we are unable to find any division that results in a positive change in Modularity.

Homepage:

https://github.com/cmclean5/rSpectral

License:

GPL2 / GPL-2

Recipe:

/r-rspectral/meta.yaml

package r-rspectral

(downloads) docker_r-rspectral

versions:

1.0.0.10-31.0.0.10-21.0.0.10-11.0.0.10-01.0.0.9-0

depends bioconductor-graph:

>=1.84.0,<1.85.0a0

depends libgcc:

>=13

depends libstdcxx:

>=13

depends r-base:

>=4.4,<4.5.0a0

depends r-igraph:

depends r-rcpp:

>=1.0.8.3

depends r-rcpparmadillo:

>=0.11.2.0.0

depends r-rdpack:

requirements:

additional platforms:

Installation

You need a conda-compatible package manager (currently either micromamba, mamba, or conda) and the Bioconda channel already activated (see set-up-channels).

While any of above package managers is fine, it is currently recommended to use either micromamba or mamba (see here for installation instructions). We will show all commands using mamba below, but the arguments are the same for the two others.

Given that you already have a conda environment in which you want to have this package, install with:

   mamba install r-rspectral

and update with::

   mamba update r-rspectral

To create a new environment, run:

mamba create --name myenvname r-rspectral

with myenvname being a reasonable name for the environment (see e.g. the mamba docs for details and further options).

Alternatively, use the docker container:

   docker pull quay.io/biocontainers/r-rspectral:<tag>

(see `r-rspectral/tags`_ for valid values for ``<tag>``)

Download stats