Snp2variant: Get variants from SNP data

Description Usage Arguments Examples

View source: R/utpalFunctions.R

Description

This function takes three vectors Position, Allele and Type from the SNPs and returns a vector of variants (e.g. "73G", "73+G", 73-" )

Usage

1
Snp2variant(Pos, Allele, Type)

Arguments

Pos

A vector of genomic positions for the SNPs (type numeric)

Allele

A vector of nucleotide bases present in the SNPs (character strings). Deletions are represented by ""

Type

A vector of the type of mutation represented by the SNP. Possible values include "Substitution", "Insertion" and "Deletion" (character strings)

Examples

1
2
Snp2variant("73", "G", "Substitution")
Snp2variant(c("73", "95", "146"), c("G", "", "C"), c("Substitution", "Deletion", "Insertion"))

Ahhgust/MMDIT documentation built on Jan. 27, 2021, 11:48 a.m.