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.

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")
whichTx <- which_tx_names(rownames(rse_tx), sig_tx)