removeSamp: Remove samples or miRNA/mRNA

Description Usage Arguments Details Value Examples

Description

Remove samples or miRNA/mRNA from a corObject.

Usage

1
removeSamp(obj, dataset, samples = NA, genes = NA, keep=FALSE)

Arguments

obj

a corObject

dataset

"miRNA" or "mRNA"

samples

colnames of the samples to be removed.

genes

rownames of the genes (mRNA or miRNA) to be removed.

keep

TRUE (keep given colnames/rownames) or FALSE. By default, FALSE.

Details

Genes are removed from miRNAdat/mRNAdat slots. Samples are removed from both pheno.miRNA/pheno.mRNA and miRNAdat/mRNAdat slots.

Take into account that minimum number of required samples is 2, otherwise the function will give an error.

Value

a corObject with the selected samples already removed.

Examples

1
2
3
4
5
6
7
8
9
data(data.obj)

dim(data.obj@dat.miRNA)
data.obj<-removeSamp(data.obj,"miRNA",samples="D_3",genes="hsa-miR-200c")
dim(data.obj@dat.miRNA)

colnames(data.obj@dat.mRNA)
data.obj<-removeSamp(data.obj,"mRNA",samples=c("D_1","D_2"),keep=TRUE)
colnames(data.obj@dat.mRNA)

mariavica/mircomb documentation built on Feb. 3, 2020, 2:28 a.m.