Leyn SA, et al., "Experimental evolution in morbidostat reveals converging genomic trajectories on the path to triclosan resistance", Microb Genom., 2021
Experimental evolution of Escherichia coli BW25113 uxaC-Knockout with exposure to triclosan
The repository contains code that was used in the data analysis for experimental evolution of Escherichia coli BW25113 ΔuxaC::kan strain under the triclosan treatment.
FastQ files for could be downloaded from the NCBI SRA database through BioProject PRJNA472810.
- Trimmomatic (site)
- BWA (site)
- Picard Tools (site)
- GATK 3 (site)
- Samtools and HTSlib (site)
- lofreq (site)
- VCFtools (site)
- SnpEff (site)
- Pandas package for Python3 (site)
- iJump (site, requires BioPython, pandas, pysam and pysamstats Python3 packages)
- Install all software from the list.
- Create Ecoli_BW25113 database for SnpEff using included
Escherichia_coli_BW25113.gbff
GenBank file (should be renamed togenes.gbk
). - Run
prepare_reference.sh
to create all index files for the reference. - Copy fastq.gz files from the SRA.
- Create working directory.
- Copy
run_alignment_lofreq.sh
to the working directory. - Fill all required paths in
run_alignment_lofreq.sh
. - Run the
run_alignment_lofreq.sh
.
After sequencing population samples, we found that about 95% of called variants are A-C or T-G variants. Additionally, we observed that the number of C-A and G-T variants are increased over others. Detailed analysis of reads showed the presence of increased amount of A-C and C-A substitutions. We highly doubt that these variants could reflect real mutations and consider most of them as false-positives. To clean data we made the following filtering:
- A-C/T-G variants:
- Frequency distribution is close to log-normal with mean=1.39, SD=0.237 (Fig. SM1);
Figure SM1. Distribution of frequencies for A-C and T-G variants combined from all samples. The histogram of frequencies drawn randomly from theoretical log-normal distribution with mean=1.39 and SD=0.237 is plotted orange.
- Assuming log-normal distribution as the background assign probability to observe this or higher frequency as a p-value to each variant observation;
- Compute FDR by Benjamini and Hochberg post-hoc procedure with the threshold 0.01
- C-A/G-T variants:
- Frequency distribution is bimodal (Fig. SM2). The left part follows log-normal distribution with mean = 1.26 and SD = 0.36 and right is close to normal with mean=9.8 and SD=2.5;
Figure SM2. Distribution of frequencies for C-A and G-T variants combined from all samples. The densities of log-normal distribution with mean = 1.26 and SD = 0.36, and normal distribution with mean = 9.8 and SD=2.5 are plotted orange and purple. Red vertical line represents proposed threshold for false positives.
- Set threshold for false-positives as intersection of both distributions at 6.5%
- For all variants:
- Keep variants with maximum observed frequency >2%;
- Filter out variants in predicted repeat regions;
- Compute chi-squared test for uniformity of frequency distribution for each reactor for each variant. Keep variant if in at least one reactor p-value < 0.05;
- Remove all variants in uxaC gene as ΔuxaC is the parent strain.
- For some variants frequency distribution behaved as variants in repeat region although their position was not predicted as repeat region (random occurrence of nearly the same frequency in different samples). These variants were inspected and filtered manually.