channels_contributions: channels_contributions

View source: R/hypergate.R

channels_contributionsR Documentation

channels_contributions

Description

Gives scores for the contribution of individual channels to a gating strategy

Usage

channels_contributions(gate, xp, gate_vector, level, beta = 1)

Arguments

gate

A return from hypergate

xp

Expression matrix as in the hypergate call

gate_vector

Categorical vector of length nrow(xp)

level

A level of gate_vector that identifies the population of interest

beta,

should be the same as for the hypergate object

Examples

data(Samusik_01_subset)
xp=Samusik_01_subset$xp_src[,Samusik_01_subset$regular_channels]
gate_vector=Samusik_01_subset$labels
hg=hypergate(xp=xp,gate_vector=gate_vector,level=23,delta_add=0)
contribs=channels_contributions(gate=hg,xp=xp,gate_vector=gate_vector,level=23,beta=1)
contribs

ebecht/hypergate documentation built on Feb. 4, 2024, 3:29 p.m.