which_tx_names: Check validity of transcript vectors and return a vector...

View source: R/utils.R

which_tx_namesR Documentation

Check validity of transcript vectors and return a vector matching indexes in tx1

Description

This function is used to check if tx1 and tx2 are GENCODE or ENSEMBL transcript IDs and return an integer vector of tx1 transcript indexes that are in tx2.

Usage

which_tx_names(txnames, sig_tx)

Arguments

txnames

A character() vector of GENCODE or ENSEMBL transcript IDs.

sig_tx

A character() vector of GENCODE or ENSEMBL signature transcript IDs.

Value

A integer() vector of txnames transcript indexes in sig_tx.

Examples

sig_tx <- select_transcripts(cell_component = TRUE)
whichTx <- which_tx_names(rownames(rse_tx), sig_tx)

LieberInstitute/qsvaR documentation built on Dec. 14, 2024, 10:30 p.m.