id_snps {MixviR}R Documentation

ID SNV-based Amino Acid Changes

Description

Identify amino acid changes associated with single nucleotide variation. Changes associated with indels are identified in separate function. Used by call_mutations() function.

Usage

id_snps(variant.calls, ref, code.num = "1")

Arguments

variant.calls

Data frame with cols POS, REF, ALT, AF (alt freq), DP (total read depth).

ref

reference genome in "MixVir" format (from create_ref() function)

code.num

Number defining the genetic code to use for translation

Value

Data frame that includes amino acid calls based on SNP/SNV variants observed in sample. Contains cols "POS", "REF_BASE", "GENE", "REF_CODON", "REF_AA", "GENE_AA_POS", "REF_IDENT", "REF", "ALT", "ALT_freq", "ALT_COUNT", "samp_codon", "samp_AA", "samp_identity", "DP"


[Package MixviR version 3.5.0 Index]