sharedBreadth: Plot the breadth of a first study compared to a second one.

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

sharedBreadthR Documentation

Plot the breadth of a first study compared to a second one.

Description

The colours refer to the breadth of expression in the other study.

Usage

sharedBreadth(a, b, lapse, typeR = "vec", simplify, strict, Lims,
  colName = "nb.tissues")

Arguments

a

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

b

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

lapse

positive integer. 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.

typeR

character string. Allows to pick the type of output. "vec" for a vector of the type of breath of expression observed in the first study compared to the second one.

simplify

boolean. 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".

strict

boolean. 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.

Lims

a length-4 numeric vector. When the analysis is in the "simplify" mode, it allows to delimit two ranges of expression breadth to compare between the two studies.

colName

character string. Gives the name of the column in the data.frame that has recorded the breath of expression of the genes

Value

depending on "typeR" either a vector or a data.frame


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