collapse_labels: collaps overlay data

View source: R/collapse_labels.R

collapse_labelsR Documentation

collaps overlay data

Description

a data.frame used to overlay items in genoppi will look for non-unqiue gene names and combine them into a single informative line using their alt_label (e.g. snp) and their corrsponding dataset.

Usage

collapse_labels(
  overlay,
  dataset = "dataset",
  collapse_into = "alt_label",
  collapse_by = "gene",
  dataset_collapse_sep = ": ",
  item_sep = " <br>"
)

Arguments

overlay

a data.frame

dataset

the main dataset name that is to be combined.

collapse_into

the column that will contain the collapsed entries.

collapse_by

what identifying colummn is the data to be collapsed by?

dataset_collapse_sep

how should the dataset column and collapse-column be seperated by when collapsed?

item_sep

how should each collapsed item be seperated from the next? Default is newline.


lagelab/Genoppi documentation built on Oct. 13, 2022, 2:36 p.m.