cross.sharedDistrib: Compute and compare the breath of expression of two studies...

View source: R/genes-meta-analyses.R

cross.sharedDistribR Documentation

Compute and compare the breath of expression of two studies and can plot them

Description

Compute and compare the breath of expression of two studies and can plot them

Usage

cross.sharedDistrib(DF1, DF2, omit.zero = TRUE, threshold = 0,
  strict = FALSE, simplify = TRUE, Lims = c(1, 3, 10, 12),
  lapse = 3, colour, ..., annotate = TRUE, publish = TRUE,
  P1 = TRUE, P2 = FALSE, unit.DF1 = "", unit.DF2 = "",
  Prefix = "")

Arguments

DF1

numeric data.frame comprising the expression data of the first study.

DF2

numeric data.frame comprising the expression data of the second study.

omit.zero

boolean. Default: TRUE. Whether the genes which do not reach the minimal expression threshold in any tissue should be stripped from the output.

threshold

numeric. Default: 0. Minimal level of expression to be considered as expressed.

strict

boolean. Default:FALSE. Whether if only strict equality between the breadth of expression of each gene between the two studies should be considered or if the "lapse" argument should be used to define 'similar' cases as well.

simplify

boolean. Default: TRUE. Whether to focus only on the most extreme breadth of expression. "Expressed in all" or "nearly in all" might be more descriptive than "expressed in 5" versus "expressed in 6".

Lims

a length-4 numeric vector. Default: c(1,3,10,12). When the analysis is in the "simplify" mode, it allows to delimit two ranges of expression breadth to compare between the two studies.

lapse

positive integer. Default: 3. Allow to relax constraints on perfect equality of breadth for the genes between the two studies. A "similar" class is created. The lapse allows to define which level of similarity is acceptable. e.g. if lapse=3, all genes that have a breadth of expression that varies at most of 3 are considered to have similar breadth.

colour

colour palette for the different categories. Default: "set2" of colorbrewer2

...

other arguments that can be used by ggplot2::theme_bw()

annotate

boolean. Default: TRUE. Whether to annotate the figures with the counts in each category for an accurate read.

publish

boolean. Default: TRUE. Whether to apply ggplot2::theme_bw to the plot.

P1

boolean. Default: TRUE. Whether to plot the figure for the first study and to return it as a port of the result.

P2

boolean. Default: TRUE. Whether to plot the figure for the second study and to return it as a port of the result.

unit.DF1

character string. Default: ” For the labelling, allows to input the correct unit in which the genes in the first study are expressed.

unit.DF2

character string. Default: ” For the labelling, allows to input the correct unit in which the genes in the second study are expressed.

Prefix

character string. Default: ”. Allows to complete the labelling on the plot. e.g. Prefix='Expression'

Value

depending of whether P1 and P2 are true, the output is the data.frames with an added column for the expression breadth and the plot of their distribution.


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.