Skip to content

Commit 655fa4b

Browse files
committed
add standarization
1 parent 925ead9 commit 655fa4b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎R/methyl_deconvolution.R‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,10 @@ compute_CpG_signature_extension <- function(rna_signature,
613613
cpg_region = c("both", "promoter", "distal"),
614614
cell_expression_data = NULL) {
615615

616+
## Standarize cell types names from both signatures
617+
rna_signature = multideconv::standardize_celltype_colnames(rna_signature)
618+
cpg_signature = multideconv::standardize_celltype_colnames(cpg_signature)
619+
616620
## Map CpGs to genes using PCHi-C network and filter genes based on promoter/distal location
617621
genes_selected <- compute_cpg_chromatin_mapping(cpg_signature, cpg_region)
618622

0 commit comments

Comments
 (0)