This function calculates cell-type proportions of an inputted bulk sample using DeconRNA-seq, WGCNA, and DCQ methods. Outputted cell-type proportions are then compared.
count_file: Normalized (CPM, TPM, RPKM) RNA-seq count matrix where rows are gene symbols and columns are individuals. Either the object itself of the path of a .tsv file.
signature_matrix: Signature matrix (odds ratios) of cell-type specificity of genes. Either the object itself or a pathway to an .RData file containing an object named "wilcoxon_rank_mat_or" - generally internal.
print_plot: print the barplot of estimated cell-type proportions from each method into the R console (logical: TRUE/FALSE)
order_celltype: Specify the order that cell-type are placed on the barplot. NULL = alphabetical, otherwise a character vector of cell-type labels (i.e. column names of the signature matrix).
useWGCNA: specify if WGCNA is installed = TRUE/FALSE.
Returns
List with the following elements: - cellWeighted_Foldchange: data frame of cellweightedFold-changes for each gene.
cellType_Proportions: data frame of cell-type proportions from DeconRNA-seq.
leave_one_out_proportions: data frame of average cell-type proportions for case and control when gene is removed.
processed_signature_matrix: signature matrix used in final analysis.