correlateWithBinaryPhenotype | R Documentation |
getAllResiduals
and a phenotype paths vector for a binary phenotype made with tree2Paths
Computes the association statistics between RER from getAllResiduals
and a phenotype paths vector for a binary phenotype made with tree2Paths
correlateWithBinaryPhenotype(
RERmat,
charP,
min.sp = 10,
min.pos = 2,
weighted = "auto",
winsorizeRER = NULL,
winsorizetrait = NULL,
bootstrap = F,
bootn = 1000
)
RERmat |
RER matrix returned by |
charP |
phenotype vector returned by |
min.sp |
Minimum number of species that must be present for a gene |
min.pos |
Minimum number of species that must be present in the foreground (non-zero phenotype values) |
weighted |
perform weighted correlation. This option turns on weighted correlation that uses the weights computed by |
winsorizeRER |
Winsorize RER values before computing Pearson correlation. winsorizeRER=3 will set the 3 most extreme RER values at each end of each row to the 4th most extreme value. |
winsorizetrait |
Winsorize phenotype vector values before computing Pearson correlation. winsorizeRER=3 will set the 3 most extreme RER values at each end of each row to the 4th most extreme value. |
bootstrap |
toggle bootstrapping (for weighted pearson correlation) |
bootn |
number of runs to use when bootstrapping. Will be ignored if bootstrap is false. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.