Creates a string with the information for all SNPs. 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. Each entry of the character string corresponds to a different SNP.
vcflocus(reference, alternative, total)
is a character vector with as many entries as the number of SNPs in the locus. Each entry of this character vector contains the information for a single SNP coded as R,A:DP.
is a vector with the number of reads with the reference allele. Each entry of the vector corresponds to a different SNP.
is a vector with the number of reads with the alternative allele. Each entry of the vector corresponds to a different SNP.
is a vector with the total number of reads observed at each SNP. Each entry of the vector corresponds to a different SNP.