chienlab-tnseq is a Snakemake pipeline for performing bacterial TNseq alignment and annotation.
The pipeline will perform the following steps:
- Removes reads that does not contain the static transposon region. (
Seqkit) - Removes PCR duplicates using UMIs. (
JE) - Align reads to reference genome. (
BWA-MEM) - Generates BigWig files for visualization in genome browsers (
deeptools) - Assigns 5' position to counts. (
bedtools genomecov) - Maps position counts to gene features using either clipped or full sized genes. (
bedtools map) - Creates tab-separated count files.
You will need to install Conda package manager.
- Clone the repository
git clone https://github.com/baldikacti/chienlab-tnseq.git
- Change your working directory to cloned repository
- Create and activate the conda environment
conda env create -f envs/environment.yaml
conda activate chienlab-tnseq
- Open
config/config.yamlin your favorite text editor.
Change the fastq: "data/test/" paramater to the directory that contains your fastq files
Change the results: "results/test/" paramater to the directory that you want the results to be exported to.
It is important to keep the forward slashed at the end of directory paths.
The config file contains parameters for fasta and bed formatted gene feature references. Change those as needed for different organisms.
- Run the pipeline with select number of cores.
snakemake --use-conda --cores 8
- preprocess directory containing filtered fastq files based on the transposon sequence
- bwa_aln directory containing BAM files.
- bigwig directory containing BigWig files.
- mapped directory containing mapped bed formatted files
- read_counts directory containing:
totalcounts_mid: total count files that are mapped to clipped gene features.totalcounts_full: total count files that are mapped to full sized gene features.uniquecounts_mid: unique count files that are mapped to clipped gene features.uniquecounts_full: unique count files that are mapped to full sized gene features.
This software has been used in the following publications. If you use this software in your publication, please cite one of the following.
Sarsani, V., Aldikacti, B., Zhao, T., He, S., Chien, P., & Flaherty, P. (2025). Discovering genetic modulators of the protein homeostasis system through multilevel analysis. PNAS nexus, 4(1), pgae574. https://doi.org/10.1093/pnasnexus/pgae574
Aldikacti, B., Putun, H., Sarsani, V., Zeinert, R., Flaherty, P., & Chien, P. (2026). Stress testing reveals selective vulnerabilities in protein homeostasis. Cell reports, 45(2), 116892. https://doi.org/10.1016/j.celrep.2025.116892