subset_matrix_hg: subset_matrix_hg

Description Usage Arguments Examples

View source: R/hypergate.R

Description

Returns a boolean vector whose TRUE elements correspond to events inside the hyperrectangle

Usage

1
subset_matrix_hg(gate, xp)

Arguments

gate

a return from hypergate

xp

Expression matrix used for gate

Examples

1
2
3
4
5
6
7
8
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.01)
gating_state=subset_matrix_hg(hg,xp)
gating_state=ifelse(gating_state,"Gated in","Gated out")
target=ifelse(gate_vector==23,"Target events","Others")
table(gating_state,target)

ebecht/hypergate documentation built on March 9, 2020, 4:05 p.m.