convertToNCBIGeneID: ID conversion function to create the input matrix for...

Description Usage Arguments Value Author(s) Examples

View source: R/AllGenerics.R

Description

Duplicated row names or NA row names are removed from input matrix, and the matrix with the row names of NCBI Gene ID is generated.

Usage

1
convertToNCBIGeneID(input, rowID, LefttoRight)

Arguments

input

Input matrix (or data.frame).

rowID

Gene identifier in each row of the input matrix. The length of rowID must be same as the number of tht input matrix.

LefttoRight

Corresponding table with left column (Gene identifier <same type of row ID>) and right column (NCBI Gene ID).

Value

A matrix object with with the row names of NCBI Gene ID.

Author(s)

Koki Tsuyuzaki

Examples

1
2
3
4
5
6
7
8
9
input <- matrix(1:20, nrow=4, ncol=5)
rowID <- c("A", NA, "B", "B")
LefttoRight <- rbind(
  c("A", "1"),
  c("B", "2"),
  c("B", "4"),
  c("D", NA)
)
(input <- convertToNCBIGeneID(input, rowID, LefttoRight))

scTensor documentation built on Nov. 8, 2020, 5 p.m.