select_markers: Select a subset of markers in a view

View source: R/view-manipulators.R

select_markersR Documentation

Select a subset of markers in a view

Description

Select a subset of markers in a view

Usage

select_markers(current.views, view = "intraview", ...)

Arguments

current.views

the current view composition.

view

the name of the view to select markers for.

...

one or more select expressions dplyr::select() for the specified view.

Value

A mistyR view composition with selected markers in view.

See Also

<tidy-select>.

Other view manipulation functions: filter_views(), rename_view()

Examples

# Create a view composition with an intraview and select

library(dplyr)

# get the expression data
data("synthetic")
expr <- synthetic[[1]] %>% select(-c(row, col, type))

# compose
misty.views <- create_initial_view(expr)

# select markers from the intraview not starting with lig and preview
misty.views %>%
  select_markers("intraview", !starts_with("lig")) %>%
  str()

saezlab/mistyR documentation built on March 25, 2024, 4:12 p.m.