Learn R Programming

tigger (version 1.1.0)

genotypeFasta: Return the nucleotide sequences of a genotype

Description

genotypeFasta converts a genotype table into a vector of nucleotide sequences.

Usage

genotypeFasta(genotype, germline_db, novel = NA)

Value

A named vector of strings containing the germline nucleotide sequences of the alleles in the provided genotype.

Arguments

genotype

data.frame of alleles denoting a genotype, as returned by inferGenotype.

germline_db

vector of named nucleotide germline sequences matching the alleles detailed in genotype.

novel

an optional data.frame containing putative novel alleeles of the type returned by findNovelAlleles.

See Also

inferGenotype

Examples

Run this code
# Find the sequences that correspond to the genotype
genotype_db <- genotypeFasta(SampleGenotype, SampleGermlineIGHV, SampleNovel)

Run the code above in your browser using DataLab