tri.basic: Overview of Triplets' Expression

Description Usage Arguments Details Value Examples

View source: R/tri.basic.R

Description

Plot to show effector/target expression in a triplet (or triplets).

Usage

1
tri.basic(tri, M.exp, E.exp, T.exp, index = 1, N = 0.25)

Arguments

tri

a dataframe (or matrix) representing triplets to plot in which the first column is modulator id,the second is effector id and the third column is target id.The id style must be consistent with rownames of M.exp E.exp T.exp,respectively.

M.exp

a numeric dataframe (or matrix) representing modulator expression profile whose rownames is modulator id.

E.exp

a numeric dataframe (or matrix) representing effector expression profile whose rownames is effector id.

T.exp

a numeric dataframe (or matrix) representing target expression profile whose rownames is target id.

index

a numeric vector (default 1) specifying rowindex of triplets to plot.

N

a numeric (rangs from 0 to 0.5,default 0.25) specifying proportion,by which LOW/HIGH sample group are extracted from a sorted modulator expression samples.

Details

Note:All the arguments without default value must be assigned.

For each triplet,the plot consists of 3 parts.

The left-top is a barplot showing expression of effector in LOW/HIGH sample group. The right-top is a scatter diagram with a linear fitted line using the function lm.The scatter diagram shows expression of target versus effector in LOW/HIGH sample group in which red is the HIGH while green is the LOW.The right-bottom is a barplot showing expression of target in LOW/HIGH sample group.

Value

A dataframe whose rownames represent rowindex of triplets and columns represent 6 kinds of value of the plot (P_effector_target, P_effector, P_target, R_low, R_high, P_low, P_high).

Examples

1
2
3
4
5
6
7
#One triplet
tri.basic(tri=datatests[["tri_bs"]],M.exp=datatests[["M_exp"]],
          E.exp=datatests[["E_exp"]],T.exp=datatests[["T_exp"]])
#Two triplets (or more)
tri.basic(tri=datatests[["tri_bs"]],M.exp=datatests[["M_exp"]],
          E.exp=datatests[["E_exp"]],T.exp=datatests[["T_exp"]],
		  index=c(1,2))

LncMod documentation built on May 2, 2019, 9:33 a.m.