subsetGiotto: subsetGiotto

Description Usage Arguments Value Examples

View source: R/auxiliary_giotto.R

Description

subsets Giotto object including previous analyses.

Usage

1
subsetGiotto(gobject, cell_ids = NULL, gene_ids = NULL, verbose = FALSE)

Arguments

gobject

giotto object

cell_ids

cell IDs to keep

gene_ids

gene IDs to keep

verbose

be verbose

Value

giotto object

Examples

1
2
3
4
5
6
7
8
data(mini_giotto_single_cell)

random_cells = sample(slot(mini_giotto_single_cell, 'cell_ID'), 10)
random_genes = sample(slot(mini_giotto_single_cell, 'gene_ID'), 10)

subset_obj = subsetGiotto(mini_giotto_single_cell,
                         cell_ids = random_cells,
                         gene_ids = random_genes)

bernard2012/Giotto documentation built on Sept. 22, 2020, 10:29 a.m.