View source: R/getCommonName.R
getCommonName | R Documentation |
Find most common name by matching any/all of Antigen name, clone, gene identifiers
getCommonName(
x,
cols = NULL,
ab = "Antigen",
fill_col = "Antigen_std",
n_matched = "n_matched",
ignore = TRUE,
verbose = TRUE,
...
)
x |
data.frame for finding common name |
cols |
Columns for grouping, default: NULL means that the columns Antigen, Cat_Number, Clone, ALT_ID are used. Note that gene identifiers are not used by default as some antibodies target particular isoforms. |
ab |
Column containing antibody names for standardising, default "Antigen" |
fill_col |
column to add |
n_matched |
name of column to add with number of matching results, default "n_matched" |
ignore |
A named list, where names match colnames of x and values are regular expressions matching values in x that should not be used for grouping. For example, entries where the catalogue number is "Custom made" should not be used for matching. Alternatively, set to TRUE to use the default ignore patterns. |
verbose |
Print information about which columns are used for grouping? Default: TRUE |
... |
pass keep = TRUE for keeping grouping columns for debugging |
Be careful of exceptions, e.g. Cat_Number == "custom made"
Helen Lindsay
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.