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.yaml
in 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.