ModifyMergedProfiles: Apply Feature Selection

Description Usage Arguments Details Value Examples

Description

Subset all matrices of a merged_profiles object to contain only the specified features.

Usage

1
	apply_feature_selection(merged_profiles, features)

Arguments

merged_profiles

Output from: merge_profiles function.

features

a vector of gene names.

Details

apply_feature_selection subsets all the matrices of a merged_profiles object to contain only the specified features.

Value

a merged_profiles object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
obj <- list(
	mus = matrix(rnorm(200), ncol=10),
	rs  = matrix(rgamma(200, shape=0.75, scale=1), ncol=10),
	ds  = matrix(runif(200), ncol=10),
	Ns  = matrix(rpois(200, lambda=30), ncol=10))
rownames(obj$mus) <- paste("gene", 1:nrow(obj$mus), sep="")
rownames(obj$rs) <- paste("gene", 1:nrow(obj$mus), sep="")
rownames(obj$ds) <- paste("gene", 1:nrow(obj$mus), sep="")
rownames(obj$Ns) <- paste("gene", 1:nrow(obj$mus), sep="")

obj <- apply_feature_selection(obj, c("gene1", "gene3", "gene5", "gene10"))

tallulandrews/TreeOfCells documentation built on April 26, 2020, 2:43 p.m.