getGermlineDistance: Function to calculate distance from germline for all...

View source: R/germlineDistances.R

getGermlineDistanceR Documentation

Function to calculate distance from germline for all observations in a given lineage tree

Description

Read a newick tree to calculate distance-from-germline. Assume germline is in the tree, with name beginning with 'IG.V' where '.' can be any character.

Usage

getGermlineDistance(tree_file)

Arguments

tree_file

Character, filename of the phylogenetic tree in newick format.

Value

A data.frame with two columns with the following names:

SeqID

Character, Identifier of sequence given in the tree file.

distFromGermline

Numeric, distance from the identified germline (i.e. total lengths of edges traversed in order to get from the germline to the given sequence.


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