subset_matrix_hg {hypergate} | R Documentation |
subset_matrix_hg
Description
Returns a boolean vector whose TRUE elements correspond to events inside the hyperrectangle
Usage
subset_matrix_hg(gate, xp)
Arguments
gate |
a return from hypergate |
xp |
Expression matrix used for gate |
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.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)
[Package hypergate version 0.8.5 Index]