get_phen_list: Creates edge lists.

View source: R/00_graph.R

get_phen_listR Documentation

Creates edge lists.

Description

Creates edge lists indicating relationships between cell populations given meta data on these cell populations produced by the get_phen_meta function.

Usage

get_phen_list(meta_cell = NULL, phen = NULL, no_cores = 1)

Arguments

meta_cell

A data frame containing meta data on cell populations as produced by the get_phen_meta function.

phen

A string vector of phenotype or cell population name labels. Cannot be set to NULL if meta_cell is set to NULL.

no_cores

An integer indicating how many cores to parallelize on.

Value

A list containing 'pchild', an edge list indicating where edges point to, 'pparen', an edge list indicating where edges point from, and 'edf', a data frame where each row contains the nodes an edge points 'from' and 'to'.

See Also

get_phen_meta cell_type_layers

Examples


   phen <- c('A+B-C+', 'A+B-', 'A+')
   get_phen_list(phen=phen)


aya49/flowGraph documentation built on Feb. 4, 2024, 6:40 p.m.