Skip to contents

Sample cell-type labels for graph vertices

Usage

genRandomCellTypeList(Dcelltype, vertexNo)

Arguments

Dcelltype

Probability vector over cell types.

vertexNo

Number of vertices to sample.

Value

An integer vector of sampled cell-type indices.