VDJphylo: Infers basic phylogenetic trees of VDJ germlines of interest...

Description Usage Arguments Value Examples

View source: R/VDJphylo.R

Description

Infers basic phylogenetic trees of VDJ germlines of interest with basic distance methods.

Usage

1
2
VDJphylo(species, chain, source, write.fasta, fasta.name, directory.string,
  inference.method)

Arguments

species

Specifies desired species. Current species options can be found by running unique(VDJgermlines$species) after loading in data(VDJgermlines). "all_species" will select all available species. Species include ("alpaca","bovine","crab_eating_macaque","dog", "human","mouse","pig","platypus","rabbit",raintrout","rat","rhesus monkey","salmon", "sheep","zebrafish","atlanticcod","catfish","teleostei","goat","dolphin","mamonkey", "camel","runny")

chain

Specifies the desired chain. "all_chains" will select all chains. The various chains can be listed by running unique(VDJgermlines$chain).Antibody loci start with IG, TCR starts with TR.NExt comes either heavy, light, alpha, beta etc. Examples include IGHD IGHJ IGHV IGIJ IGIV IGKJ IGKV IGLJ IGLV TRAJ TRAV TRBD TRBJ TRBV TRDD TRDJ TRDV TRGJ TRGV

source

Specifies from which source the desired chains should be taken from. Current sources can be found by running unique(VDJgermlines$source) after loading in data(VDJgermlines). IMGT and vgenerepertoire are currently present.

write.fasta

A boolean (TRUE / FALSE) value that species if the output sequences should be also written as a fasta file.

fasta.name

A string specifying the name of the fasta file. If this is left blank this will be defaulted to "VDJgermlines.fasta". Manually including extension is not needed.

directory.string

A string stating the directory that the fasta file should be saved to. If left blank the fasta file will be stored in the current working directory.

inference.method

Specifies the method to be used to infer the phylogenetic tree. Currently includes "lv" for Levenshtein distance.

Value

Returns an unrooted tree inferred using the neighbor joining algorithm. Can be viewed by plot(output_tree) after loading ape package.

Examples

1
VDJphylo(species = "dog",chain = "IGHD",source = "IMGT",write.fasta = FALSE)

Example output

Loading required package: ape
Loading required package: stringdist
sh: 1: wc: Permission denied
Could not detect number of cores, defaulting to 1.

Phylogenetic tree with 6 tips and 4 internal nodes.

Tip labels:
  IMGT000001|IGHD1*01|Canis, IMGT000001|IGHD2*01|Canis, IMGT000001|IGHD3*01|Canis, IMGT000001|IGHD4*01|Canis, IMGT000001|IGHD5*01|Canis, IMGT000001|IGHD6*01|Canis

Unrooted; includes branch lengths.

VDJgermlines documentation built on May 2, 2019, 5:57 a.m.