drop: Remove from a GeneSetCollection

Description Usage Arguments Value Methods (by class) Note See Also Examples

Description

Removes either genes or pathways of a GeneSetCollection if present.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
drop(object, gene, pathway)

## S4 method for signature 'GeneSetCollection,character,character'
drop(object, gene,
  pathway)

## S4 method for signature 'GeneSetCollection,missing,character'
drop(object, pathway)

## S4 method for signature 'GeneSetCollection,character,missing'
drop(object, gene)

## S4 method for signature 'GeneSetCollection,numeric,numeric'
drop(object, gene, pathway)

## S4 method for signature 'GeneSetCollection,missing,numeric'
drop(object, pathway)

## S4 method for signature 'GeneSetCollection,numeric,missing'
drop(object, gene, pathway)

Arguments

object

A GeneSetCollection object.

gene

The number or names of the genes to be removed.

pathway

The number or names of the pathways to be removed.

Value

A GeneSetCollection object without those genes or pathways.

Methods (by class)

Note

Remember that a GeneSet is defined as a group of genes (more than one), and if one gene set has only one gene it is removed. Conversely, a gene is removed if it doesn't belong to any GeneSet.

See Also

add To just add a relationship. modify To remove and add relationship at once.

Examples

1
2
drop(Info, gene = "3", pathway = "156580")
drop(Info, pathway = "156580")

llrs/GSEAdv documentation built on May 29, 2019, 6 p.m.