table_cross {TOmicsVis} | R Documentation |
Table cross used to cross search and merge results in two tables.
Description
Table cross used to cross search and merge results in two tables.
Usage
table_cross(
data1,
data2,
inter_var = "Genes",
left_index = TRUE,
right_index = TRUE
)
Arguments
data1 |
Dataframe: Shared DEGs of all paired comparisons in all samples expression dataframe of RNA-Seq. (1st-col: Genes, 2nd-col~: Samples). |
data2 |
Dataframe: GO and KEGG annotation of background genes (1st-col: Genes, 2nd-col: biological_process, 3rd-col: cellular_component, 4th-col: molecular_function, 5th-col: kegg_pathway). |
inter_var |
Character: Intersecting variable (column name). Default: "geneID" in example data. |
left_index |
Logical: left table as index. Default: TRUE, options: TRUE, FALSE. |
right_index |
Logical: right table as index. Default: FALSE, options: TRUE, FALSE. |
Value
Table: include multiple columns.
Author(s)
benben-miao
Examples
# 1. Library TOmicsVis package
library(TOmicsVis)
# 2. Use example dataset
data(gene_expression2)
head(gene_expression2)
data(gene_go_kegg)
head(gene_go_kegg)
# 3. Default parameters
res <- table_cross(gene_expression2, gene_go_kegg, inter_var = "Genes")
head(res)
# 4. Set left_index = TRUE, right_index = FALSE
res <- table_cross(gene_expression2, gene_go_kegg,
inter_var = "Genes", left_index = TRUE, right_index = FALSE)
head(res)
# 5. Set left_index = FALSE, right_index = TRUE
res <- table_cross(gene_expression2, gene_go_kegg,
inter_var = "Genes", left_index = FALSE, right_index = TRUE)
head(res)
[Package TOmicsVis version 2.0.0 Index]