View source: R/subset_metaanalysis.R
create_dataset | R Documentation |
Given a number of differential expression analyses it creates a dataset with the right format for the downstream analyses.
create_dataset(
...,
col_names = "GeneName",
col_adjpvals = c("adj.P.Val", "padj"),
col_log2FC = c("logFC", "log2FoldChange")
)
... |
dataframes with the differential expression analyses to be included in the final dataset. |
col_names |
character vector with all the possible column names that indicate the gene names in the input dataframes. If this column is absent the rownames will be used as gene names. |
col_adjpvals |
character vector with all the possible column names that indicate the adjusted p-value in the input dataframes. |
col_log2FC |
character vector with all the possible column names that indicate the log2 fold changes in the input dataframes. |
dataset list of lists, including a list called names
containing sublists, each corresponding to a specific comparison from a study, of differentially expressed genes (each sublist is a character vector). The sublists are named with the names given to each of the objects given as differential expression analyses.
# import dataset with DESeq2 differential expression analysis
data("ipsc_deseq2")
# import dataset with limma differential expression analysis
data("thymus_limma")
list_array_2studies=create_dataset(thymus_limma, ipsc_deseq2,col_names="GeneName", col_adjpvals=c("adj.P.Val", "padj"), col_log2FC=c("logFC", "log2FoldChange"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.