strg2vcf: Create vcf string for a single SNP

View source: R/functions_pool.R

strg2vcfR Documentation

Create vcf string for a single SNP

Description

Creates a string with the information for a single SNP. The information is coded as R,A:DP. R is the number of reads of the reference allele, A is the number of reads of the alternative allele and DP is the total depth of coverage.

Usage

strg2vcf(reference, alternative, total)

Arguments

reference

an integer representing the number of reads with the reference allele

alternative

an integer representing the number of reads with the alternative allele

total

an integer representing the total number of reads observed at this SNP.

Value

a character string coded as R,A:DP.


poolHelper documentation built on July 9, 2023, 6:23 p.m.