FormatCustomGenePairs: Format User Given Gene Pairs

View source: R/InterCellDBclass.R

FormatCustomGenePairsR Documentation

Format User Given Gene Pairs

Description

This function makes 2-column table (each row represents one gene pair) to be formatted to be used in this package.

Usage

FormatCustomGenePairs(object, gene.pairs.table, extend.reverse = FALSE)

Arguments

object

A InterCell object, which is created by CreateInterCellObject.

gene.pairs.table

2-column table, and each column records one list of genes.

extend.reverse

Decide whether to extend pairs with the reverse pairs. Default is FALSE.

Details

The formatting process will remap the genes in 1st column from input to 'inter.*.A' columns in result. The result of 2nd column from input will be put in 'inter.*.B' columns.

Explanation on extend.reverse: For example, given pair C3~C3ar1, if set extend.reverse = TRUE, then both C3~C3ar1 and C3ar1~C3 will be generated in result.

Value

A list with $result storing the formatted gene pairs.


ZJUDBlab/InterCellDB documentation built on March 19, 2023, 4:56 p.m.