Add_Pct_Diff | R Documentation |
Adds new column labeled "pct_diff" to the data.frame output of FindMarkers
, FindAllMarkers
, or other DE test data.frames.
Add_Pct_Diff(
marker_dataframe,
pct.1_name = "pct.1",
pct.2_name = "pct.2",
overwrite = FALSE
)
marker_dataframe |
data.frame containing the results of |
pct.1_name |
the name of data.frame column corresponding to percent expressed in group 1. Default is Seurat default "pct.1". |
pct.2_name |
the name of data.frame column corresponding to percent expressed in group 2. Default is Seurat default "pct.2". |
overwrite |
logical. If the |
Returns input marker_dataframe
with additional "pct_diff" column.
## Not run:
marker_df <- FindAllMarkers(object = obj_name)
marker_df <- Add_Pct_Diff(marker_dataframe = marker_df)
# or piped with function
marker_df <- FindAllMarkers(object = obj_name) %>%
Add_Pct_Diff()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.