Skip to contents

Table-based helper adding a DEG_sig column ("YES"/"NO") to a transcript table. Row order is preserved. With an IsoformicExperiment, isoform_switches() relates transcript and gene significance directly.

Usage

is_deg_sig(deg_sig_vector, det_table)

Arguments

deg_sig_vector

Character vector of transcript names (or IDs) belonging to significantly differentially expressed genes.

det_table

Transcript-level table with a transcript_name (or transcript_id) column.

Value

det_table with an extra DEG_sig column.

Examples

det_table <- data.frame(
  transcript_name = c("tx1", "tx2", "tx3"),
  log2FC = c(2.5, -1.2, 0.8)
)
is_deg_sig(c("tx1", "tx3"), det_table)
#>   transcript_name log2FC DEG_sig
#> 1             tx1    2.5     YES
#> 2             tx2   -1.2      NO
#> 3             tx3    0.8     YES