make_partition_by_logical: Assign Group Labels to Samples

Description Usage Arguments Author(s) Examples

Description

Set the subpopulations manually by a logical criterion (TRUE -> "A", FALSE -> "B", NA -> NA)

Usage

1

Arguments

H

SummarizedExperiment container

log_vec

logical vector of the same length as samples in H

Author(s)

Daniel Samaga

Examples

1
2
3
4
5
Hds <- hetset(D = matrix(data = rnorm(n = 500),ncol = 100))
Hds <- make_partition_by_logical(H = Hds,log_vec = runif(100)>0.42)
Hds@metadata$color_type = "subpop"
Hds@metadata$slf = "F1"
plot_hetset(Hds)

ZytoHMGU/hetset documentation built on June 6, 2019, 2:16 p.m.