make_design | R Documentation |
This function is used by test_codiu_genes
to
create a design matrix for GLM fitting using information from a pair of co-DIU
candidategenes, i.e. expression values of the gene's co-expressed isoforms,
cell type labels for cells and cluster labels for isoforms.
make_design(pair, data, cluster_list, gene_tr_table, cell_types)
pair |
A character vector of length 2 indicating the gene IDs of a gene pair to test. |
data |
A data.frame or tibble including isoforms as rows and cells as columns. Isoform IDs can be included as row names (data.frame) or as an additional column (tibble). |
cluster_list |
A list of character vectors containing isoform IDs. Each element of the list represents a cluster of isoforms. |
gene_tr_table |
A data.frame or tibble containing two columns
named |
cell_types |
A character vector including cell type assignments for
the cell IDs in |
Arguments are passed from test_codiu_genes
.
A tibble, containing a long-form table with the required factors for GLM fitting and statistical testing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.