getCSEvents: Function to parse class-switching events from arborescence...

View source: R/support.R

getCSEventsR Documentation

Function to parse class-switching events from arborescence tree analysis

Description

This function parses edges in the arborescence tree that switches isotype/subisotype, and offer a distance-from-germline estimate of this switching event, as the mean distance-from-germline of the two ends of each of such edge.

Usage

getCSEvents(
  clone,
  columnSeqID,
  columnSubclass,
  dfArborescence,
  germline,
  path_stats
)

Arguments

clone

data.frame of clone information.

columnSeqID

column name holding Sequence IDs.

columnSubclass

column name holding subclasses information.

dfArborescence

data.frame of arborescence tree edge list.

germline

Root ID for germline.

path_stats

data.frame of distances from germline calculated for the arborescence tree.

Value

A data.frame.


Fraternalilab/BrepPhylo documentation built on Jan. 3, 2025, 10:03 a.m.