MergeGroups: Merge perturbations with the same pattern in names. For...

View source: R/data_handling.R

MergeGroupsR Documentation

Merge perturbations with the same pattern in names. For example, we might want to collapse all guide RNAs into the gene they target (i.e. TULP2-1, TULP2-2, TULP2-3 into TULP2)

Description

Merge perturbations with the same pattern in names. For example, we might want to collapse all guide RNAs into the gene they target (i.e. TULP2-1, TULP2-2, TULP2-3 into TULP2)

Usage

MergeGroups(group.list, pattern, new.group.name = NULL)

Arguments

group.list

Perturbation dictionary (in list format)

pattern

Character pattern to collapse (i.e. TULP2)

new.group.name

Name of new perturbation (default: pattern)

Value

List of perts with all perturbations containing the pattern merged


yanwu2014/perturbLM documentation built on Aug. 24, 2023, 2:28 p.m.