swarmInit: swarmInit

Description Usage Arguments Value Author(s)

View source: R/psoptim.R

Description

Helper function to calculate the swarm initialization positions to provide as the swarmInit argument to CIMseqSwarm.

Usage

1
swarmInit(singlets, k, null.weight = 1, seed = 9238232)

Arguments

singlets

CIMseqSinglets; A CIMseqSinglets object.

k

integer; Number of cells in each combination, i.e. 2 gives doublets, 3 gives triplets, etc. Must be >= 2.

null.weight

numeric; Weight to adjust the amount of noise in the initialization positions. Default = 1.

seed

integer; A seed to set.

Value

A matrix with the swarm initialization state.

Author(s)

Martin Enge


jasonserviss/CIMseq documentation built on Jan. 11, 2020, 4:42 a.m.