gls.series_multiple_designs: limma gls.series adapted for varying covariates across genes

Description Usage Arguments Examples

Description

This function tests for divergence between two species in one molecular phenotype at a time. The current version is tuned for Brett's diffphos analysis.

Usage

1
2
3
gls.series_multiple_designs(M, cov_matrix = NULL, design = NULL,
  ndups = 1, spacing = 1, block = NULL, correlation = NULL,
  weights = NULL, ...)

Arguments

M

Matrix of gene by sample.

cov_matrix

Matrix of gene specific covariate information (gene by sample).

design

Model matrix, the part that is fixed across genes, indepenent of cov_matrix.

Examples

1
2
3
4
5
6
7
M <- phos_data
cov_matrix <- protein_pheno_data
individual <- as.numeric(str_extract(colnames(phos_data), "[0-9]+"))
design <- model.matrix(~ 1 + as.factor(individual))
block <- block
correlation <- mrho
ndups = 1; weights = NULL; spacing = 1

jhsiao999/Humanzee documentation built on May 19, 2019, 9:28 a.m.