Snitkin-Lab-Umich / prewas

R package to perform data pre-processing for more informative bacterial GWAS
Other
5 stars 3 forks source link

prewas specifying reference genome #9

Closed hsinjou0714 closed 3 years ago

hsinjou0714 commented 3 years ago

When I read into to the guid of prewas, I saw that reference genome could be provided, but couldn't see how to specify my reference genome in the input of prewas: results_maximal = prewas(dna = vcf, tree = tree, outgroup = outgroup, gff = gff, anc = TRUE) How do I specify this? Is the genome detected in the vcf input file? Thank you

katiesaund commented 3 years ago

The reference genome information is implied in the VCF file, as variants are called against the reference genome's sequence. No need to specify anything in the prewas function. In the example you've given here, prewas will return the ancestral allele.