Skip to content

dhineshp565/bovreproseq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

328 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bovreproseq

Bioinformatics pipeline for targeted syndromic next-generation sequencing panel for simultaneous detection of pathogens associated with bovine reproductive failure
For more info please see https://doi.org/10.1128/jcm.01433-24
Outputs html files with results, consensus sequences, metagenomics reports (Kraken2/Bracken/Blast), Krona plots, IGV reports and MultiQC quality reports.

Usage

nextflow run main.nf \
    --input <path_to_fastq_directory> \
    --out_dir <output_directory> \
    --kraken_db <path_to_kraken2_db> \
    --blastdb_path <path_to_blast_db> \
    --blastdb_name <blast_db_name>

Parameters

Required

  • --input: Path to input directory containing FASTQ files (can be gzipped).
  • --out_dir: Directory where results will be saved.
  • --kraken_db: Path to the Kraken2 database directory.
  • --blastdb_path: Path to the directory containing BLAST databases.
  • --blastdb_name: Name of the BLAST database to use.

Optional

  • --dehost: Enable host read filtering (default: true).
  • --host_db: Path to kraken2 database with Bos taurus reference genome FASTA (required if --dehost is true).
  • --qscore: Minimum mean Q-score filter for reads (default: 10).
  • --trim_barcodes: Enable barcode and adapter trimming using Porechop (default: false).
  • --read_count_threshold: Threshold for minimum read count for consensus generation amplicons (default: 10).
  • --consensus_mode: Mode for consensus generation with samtools('simple' or 'bayesian').

Workflow Description

  1. QC & Preprocessing: Merges FASTQ files, filters by Q-score (Nanoq), and optionally trims barcodes (Porechop). Generates QC metrics (NanoPlot).
  2. Dehosting (Optional): Uses kraken2 filter out Bos taurus reads
  3. Targeted Amplicon Analysis :
    • Aligns reads to the Bovreproseq_reference.fasta.
    • Generates consensus sequences using minimap2, samtools and medaka.
    • Identifies pathogens in the sample using Abricate.
    • Performs MLST typing to get subspecies ID of Campylobacter fetus.
    • Generates IGV HTML reports for visual inspection of alignments.
  4. Metagenomics:
    • Classifies reads using Kraken2 and estimates abundance with Bracken.
    • Visualizes taxonomy with Krona.
    • Validation of hits using BLAST against specified databases.
  5. Reporting:
    • Consolidates results into an interactive HTML report.
    • Generates a separate Metagenomics report.
    • MultiQC report for run statistics.

Dependencies

  • nextflow
  • docker
  • wsl2 (if on Windows)

Software Used

About

Targeted amplicon sequencing for Bovine Reproductive Pathogens

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors