remove_redundancy-methods: Drop redundant elements (e.g., elements) for which feature...

Description Usage Arguments Details Value Examples

Description

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)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
remove_redundancy(
  .data,
  .element,
  .feature,
  .value,
  of_elements = TRUE,
  correlation_threshold = 0.9,
  top = Inf,
  transform = NULL
)

## S4 method for signature 'spec_tbl_df'
remove_redundancy(
  .data,
  .element,
  .feature,
  .value,
  of_elements = TRUE,
  correlation_threshold = 0.9,
  top = Inf,
  transform = NULL
)

## S4 method for signature 'tbl_df'
remove_redundancy(
  .data,
  .element,
  .feature,
  .value,
  of_elements = TRUE,
  correlation_threshold = 0.9,
  top = Inf,
  transform = NULL
)

Arguments

.data

A 'tbl' formatted as | <element> | <feature> | <value> | <...> |

.element

The name of the element column (normally elements).

.feature

The name of the feature column (normally features)

.value

The name of the column including the numerical value the clustering is based on (normally feature value)

of_elements

A boolean. In case the input is a nanny object, it indicates Whether the element column will be element or feature column

correlation_threshold

A real number between 0 and 1. For correlation based calculation.

top

An integer. How many top genes to select for correlation based method

transform

A function to use to tranforma the data internalli (e.g., log1p)

Details

\lifecycle

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.

Value

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).

Examples

1
remove_redundancy(mtcars_tidy, car_model, feature, value)

nanny documentation built on July 1, 2020, 10:20 p.m.