R/GEX_pseudobulk.R
GEX_pseudobulk.Rd
Function that performs pseudo-bulking on the data (VGM input), according to criteria specified by the User, and uses the pseudo-bulked data to perform Differential Gene Expression (DGE) analysis.
GEX_pseudobulk(
vgm.input,
column.group,
group1,
group2,
column.comparison,
comparison,
pool,
platypus.version
)
Output of the VDJ_GEX_matrix function. Mandatory
Character vector. Mandatory. Column name of VDJ_GEX_matrix[[2]] where the groups to be tested for differenetial gene expression are located
Strings vector. Mandatory. Samples to be grouped together for differential expression analysis against group2 (if pool=TRUE or column.comparison!=NULL). If pool=FALSE, vector containing samples to be tested individually against samples with the same index in the vector of group2.
Strings vector. Mandatory. Samples to be grouped together for differential expression analysis against group1 (if pool=TRUE or column.comparison!=NULL). If pool=FALSE, vector containing samples to be tested individually against samples with the same index in the vector of group1.
Character vector. Defaults to NULL. Column name of VDJ_GEX_matrix[[2]] where the comparison cathegories are located, if DGE between group1 and group2 is performed across diferrent cathegories.
Strings vector. Defaults to NULL. Comparison cathegories, if more than one is present.
Logical. Defaults to FALSE. Indicates whether samples specified in group1 and group2 are to be pooled together within the same group.
This function works with "v3" only, there is no need to set this parameter
A data.frame or list of data.frames containing the results of the DGE analysis for every level of pseudo-bulking.