!Only for Platypus version v2. For more flexibility and platypus v3 please refer to GEX_Degenes. Extracts the differentially expressed genes between two samples. This function uses the FindMarkers function from the Seurat package. Further parameter control can be accomplished by calling the function directly on the output of automate_GEX and further extracting sample information from the "sample_id" component of the Seurat object.

GEX_DEgenes_persample(
  automate.GEX,
  min.pct,
  sample1,
  sample2,
  by.group,
  filter,
  return.plot,
  logFC,
  up.genes,
  down.genes,
  base
)

Arguments

automate.GEX

Output Seurat object from automate_GEX function that contained at least two distinct biological samples. The differential biological samples correspond to integer values in the order of the working directories initially supplied to the automate_GEX function.

min.pct

The minimum percentage of cells expressing a gene in either of the two groups to be compared.

sample1

either character or integer specifying the first sample that should be compared.

sample2

either character or integer specifying the first sample that should be compared.

by.group

Logical specifying if groups should be used instead of samples. If TRUE, then the argument in sample1 and sample2 will correspond to cells found in the groups from sample1 or sample2.

filter

Character vector of initials of the genes to be filtered. Default is c("MT-", "RPL", "RPS"), which filters mitochondrial and ribosomal genes.

return.plot

Logical specifying if a heatmap of the DEX genes is to be returned. If TRUE then @return is a list where the first element is a dataframe and the second a heatmap (see @return)

logFC

Logical specifying whether the genes will be displayed based on logFC (TRUE) or pvalue (FALSE).

up.genes

Integer specifying the number of upregulated genes to be shown.

down.genes

Integer specifying the number of downregulated genes to be shown.

base

The base with respect to which logarithms are computed. Default: 2

Value

Returns a dataframe containing the output from the FindMarkers function, which contains information regarding the genes that are differentially regulated, statistics (p value and log fold change), and the percent of cells expressing the particular gene for both groups.

Examples

if (FALSE) {
GEX_DEgenes_persample(automate.GEX=automate.GEX.output[[i]]
,min.pct = .25,sample1 = "1",sample2 = "2")
}