Here, in the interests of ‘if you have to email it twice, write a blog’ is my high-level overview of what a bacterial genomics pipeline looks like.
1. quality assess fastqs with e.g. fastqc, visualise these across your dataset with MultiQC. If data is particularly bad, do quality trimming, if not, then don’t.
2. do species level identification and identification of mixed cultures with e.g. mash, kmerid or kraken
3. do variant calling using the appropriate reference genome (chose this using top mash hit) using e.g. PHEnix
4. Read variants into a database (e.g. SnapperDB) or make a consensus genome by modifying the reference with all the variants you have identified. Most variant calling pipelines have an option to make this consensus genome, or you can do it from the VCF and the reference genome. Two important points for making a consensus genome 1) if a position is mixed in the mapping to reference, it should be called as an N, not as reference 2) all the consensus genomes should be the same length, so it’s fine to have deletions as ‘—‘ but insertions should not be included.
5. Gather all your consensus genomes into a single file and run e.g. snp-sites.
6. Make a phylogenetic tree with IQ-TREE or RAxML or FastTree
7. Annotate and view the tree with Figtree, Microreact or iTOL tree
—–
—
In terms of AMR gene detection, mykrobe and ariba are useful. SRST2 is a nice option for mapping based results (if you ask yourself which is better, mapping or assembly? the answer is both!)
–
Mykrobe
–
Ariba
—
For GWAS, bugwas and SEER are primary options.
–
Bugwas code – https://github.com/sgearle/bugwas
Bugwas blog post – http://blog.danielwilson.me.uk/2016/04/making-most-of-bacterial-gwas-new-paper.html
Bugwas paper – https://www.nature.com/articles/nmicrobiol201641
Seer code – https://github.com/mgalardini/pyseer
Seer paper – https://www.nature.com/articles/ncomms12797
–
Here is a review on pathogen GWAS, https://www.nature.com/articles/nrg.2016.132https://www.nature.com/articles/nrg.2016.132
—
Here is a paper on how to organise bioinformatics projects. I loosely follow this structure.
Plenty for you to get stuck into there!