check_tx_names: Check validity of transcript vectors

View source: R/utils.R

check_tx_namesR Documentation

Check validity of transcript vectors

Description

This function is used to check if the tx1 and tx2 are GENCODE or ENSEMBL and print an error message if it's not and return a character vector of transcripts in tx2 that are in tx1.

Usage

check_tx_names(tx1, tx2, arg_name1, arg_name2)

Arguments

tx1

A character() vector of GENCODE or ENSEMBL transcripts.

tx2

A character() vector of GENCODE or ENSEMBL transcripts.

arg_name1

A character(1) vector of description of tx1

arg_name2

A character(1) vector of description of tx2

Value

A character() vector of transcripts in tx2 that are in tx1.

Examples

sig_transcripts = select_transcripts("cell_component")
check_tx_names(rownames(covComb_tx_deg), sig_transcripts, 'rownames(covComb_tx_deg)', 'sig_transcripts')

LieberInstitute/qsvaR documentation built on June 22, 2024, 8:03 a.m.