This function combines the summary of number of posCORs or negCORs from sample types, using the CORs table generated from .EIF_correlation().

It should not be used directly, only inside .plot_Corr_RNAseq_TCGA_GTEX() function.

.combine_CORs_summary(COR_tbl1, sample_type1, COR_tbl2, sample_type2)

Arguments

COR_tbl1

a COR summary table of specific sample type EIF.cor.tumor[[2]]

sample_type1

the label of sample type where COR_df1 is derived from

COR_tbl2

a COR summary table of specific sample type EIF.cor.normal[[2]]

sample_type2

the label of sample type where COR_df2 is derived from

Value

a data frame with combined COR summary table

See also

Other helper function for correlation analysis: .combine_CORs_list(), .get_cluster_genes(), .is_significant_correlation()

Examples

if (FALSE) {
.combine_CORs_summary(
COR_tbl1 = EIF.cor.tumor[[2]], sample_type1 = "tumor",
COR_tbl2 = EIF.cor.normal[[2]], sample_type2 = "normal")
}