mantelcor2values: Mantel correlation values on two groups

Description Usage Arguments Value

View source: R/mantelcor2values.R

Description

The function uses getDataGroup function to perform mantel test on data from individuals that belongs to the same group. In this function two groups are considered: "A" & "B". The group "A" results from joining the groups "AA" & "AB" from the factors used in mantelcorGroup. The group "B" is the group "BB".

Usage

1
mantelcor2values(g1, g2, batchmat, group)

Arguments

g1

The distance data vector for a particular gene.

g2

The distance data vector for another gene.

batchmat

The distance data vector containing the corrections due to experiment conditions. The length of g1, g2 and batchmat must be the same.

group

A factor with the group to which belongs each individual in the same order as they are on the matrix from which the three first arguments belong. The function is performed so that the number of groups be 2 and the levels of group be "A" & "B" in this order.

Value

The function returns a vector with the mantel correlation value applied on data from groups "A" & "B" respectively.


isglobal-brge/co_splicing documentation built on May 18, 2019, 5:50 a.m.