CollapseLineageToVOCs: Collpase pangolin lineage a list of VOCs

View source: R/utilities.R

CollapseLineageToVOCsR Documentation

Collpase pangolin lineage a list of VOCs

Description

Collpase pangolin lineage a list of VOCs

Usage

CollapseLineageToVOCs(
  variant_df,
  vocs = GetVOCs(),
  custom_voc_mapping = NULL,
  summarize = TRUE
)

Arguments

variant_df

A dataframe with "pangolin_lineage" column

vocs

A named list with VOC (variant of concernt) name as key and a list of lineages under the VOC. The method will replace all lineages under a VOC to its name.

custom_voc_mapping

A named vector with a custom mapping for naming some lineages. See example.

Value

A dataframe with a new column "lineage_collpased".


saketkc/covmuller documentation built on April 19, 2024, 10:14 a.m.