R code for NGS SNP analysis with R