remove_redundancy() takes as imput a `tbl` formatted as | <element> | <feature> | <value> | <...> | for correlation method, and returns a `tbl` with dropped elements (e.g., elements). The backend function used is widyr::pairwise_cor (David Robinson, 2020)
remove_redundancy(
.data,
.element,
.feature,
.value,
of_elements = TRUE,
correlation_threshold = 0.9,
top = Inf,
transform = NULL
)# S4 method for spec_tbl_df
remove_redundancy(
.data,
.element,
.feature,
.value,
of_elements = TRUE,
correlation_threshold = 0.9,
top = Inf,
transform = NULL
)
# S4 method for tbl_df
remove_redundancy(
.data,
.element,
.feature,
.value,
of_elements = TRUE,
correlation_threshold = 0.9,
top = Inf,
transform = NULL
)
A `tbl` formatted as | <element> | <feature> | <value> | <...> |
The name of the element column (normally elements).
The name of the feature column (normally features)
The name of the column including the numerical value the clustering is based on (normally feature value)
A boolean. In case the input is a nanny object, it indicates Whether the element column will be element or feature column
A real number between 0 and 1. For correlation based calculation.
An integer. How many top genes to select for correlation based method
A function to use to tranforma the data internalli (e.g., log1p)
A tbl object with with dropped recundant elements (e.g., elements).
A tbl object with with dropped recundant elements (e.g., elements).
A tbl object with with dropped recundant elements (e.g., elements).
maturing
This function removes redundant elements from the original data set (e.g., elements or features). For example, if we want to define cell-type specific signatures with low element redundancy. This function returns a tibble with dropped recundant elements (e.g., elements). Two redundancy estimation approaches are supported: (i) removal of highly correlated clusters of elements (keeping a representative) with method="correlation"; (ii) removal of most proximal element pairs in a reduced dimensional space.
# NOT RUN {
remove_redundancy(mtcars_tidy, car_model, feature, value)
# }
Run the code above in your browser using DataLab