R/support_functions.R
swapAltExp_sameColData.RdSwap main & alternative Experiments, with fixed colData
swapAltExp_sameColData(scExp, alt)
| scExp | A SingleCellExperiment |
|---|---|
| alt | Name of the alternative experiment |
A swapped SingleCellExperiment with the exact same colData.
#>#> class: SingleCellExperiment #> dim: 5499 106 #> metadata(6): hc_cor consclust ... diff enr #> assays(2): counts normcounts #> rownames(5499): chr1_6025000_6030000 chr1_20185000_20190000 ... #> chrX_154395000_154400000 chrX_154545000_154550000 #> rowData names(4): ID Gene distanceToTSS top_feature #> colnames(106): scChIP_Jurkat_K4me3_BC1062721 #> scChIP_Jurkat_K4me3_BC12143233 ... scChIP_Ramos_K4me3_BC78985057 #> scChIP_Ramos_K4me3_BC9280513 #> colData names(9): barcode cell_id ... cell_cluster cell_cluster_color #> reducedDimNames(3): PCA UMAP Cor #> mainExpName: main #> altExpNames(0):