bimberlabinternal / CellMembrane

An R package with wrappers and pipelines for single cell RNA-seq analysis
10 stars 3 forks source link

use more factor-friendly equivalance check in RunFilteredContrasts #256

Closed GWMcElfresh closed 3 months ago

GWMcElfresh commented 3 months ago

Hi all,

This fixes some further woes with special characters in the pseudobulking pipeline. The prior equivalence check using == failed without yielding TRUE or FALSE here: https://github.com/bimberlabinternal/CellMembrane/blob/4b8e28db890b17944421eede0731d1bf83144096/R/PseudoBulk.R#L575

this now uses identical() to dodge this issue regardless of factor levels and returns FALSE when the factor-vectors are not the same.