Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.12 KB

README.md

File metadata and controls

25 lines (21 loc) · 1.12 KB

Genomic Signatures of Pre-Resistance in Mycobacterium tuberculosis

Code for Genomic Signatures of Pre-Resistance in Mycobacterium tuberculosis. https://www.nature.com/articles/s41467-021-27616-7

The files repeat the analysis specified in Materials and Mehods:

  1. Assembly, variant calling and pseudosequence:

Main script: pseudoseq_pipeline.sh
VCF filtering and annotation: addFT.py
Pseudosequence creation: vcf2pseudoseq.py

  1. Phylogenetic inference

Tree inference: raxml.sh
Tree dating: runBactDat.R, run_bactDat.sh

  1. Phylogenetic analysis

Ancestral sequence reconstruction: anc_seq_recons.R
Survival analysis using phylogenetic tree: survTree_functions.R, tree_functions.R, survival_analysis.R
TB profiler DB file: tb_profiler_db.complete.good.posStrRef.tsv
Genome index file: mtb.snps.dels.wg.withDR.assembly.finalSet.snpSites.masked.idx

  1. Genome-wide association study

Alignment preparation: gwas_alignment.R GWAS: gwas2_analysis.R

This code has been tested on R version 4.1.1 (2021-08-10). Dependencies required are specified within the R scripts.