Skip to main content

bacpage

This repository contains an easy-to-use pipeline for the assembly and analysis of bacterial genomes using ONT long-read or Illumina short-read technology. Read the complete documentation and instructions for bacpage and each of its functions here

Introduction

Advances in sequencing technology during the COVID-19 pandemic has led to massive increases in the generation of sequencing data. Many bioinformatics tools have been developed to analyze this data, but very few tools can be utilized by individuals without prior bioinformatics training.

This pipeline was designed to encapsulate pre-existing tools to automate analysis of whole genome sequencing of bacteria. Installation is fast and straightfoward. The pipeline is easy to setup and contains rationale defaults, but is highly modular and configurable by more advance users. Bacpage has individual commands to generate consensus sequences, perform de novo assembly, construct phylogenetic tree, and generate quality control reports.

Features

We anticipate the pipeline will be able to perform the following functions:

  • Reference-based assembly of Illumina paired-end reads
  • De novo assembly of Illumina paired-end reads
  • De novo assembly of ONT long reads
  • Run quality control checks
  • Variant calling using bcftools
  • Maximum-likelihood phylogenetic inference of processed samples and background dataset using iqtree
  • MLST profiling and virulence factor detection
  • Antimicrobial resistance genes detection
  • Plasmid detection

Installation

  1. Install mamba by running the following two command:
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
bash Mambaforge-$(uname)-$(uname -m).sh
  1. Clone the bacpage repository:
git clone https://github.com/CholGen/bacpage.git
  1. Switch to the development branch of the pipeline:
cd bacpage/
git checkout -b split_into_command
  1. Install and activate the pipeline's conda environment:
mamba env create -f environment.yaml
mamba activate bacpage
  1. Install the bacpage command:
pip install .
  1. Test the installation:
bacpage -h
bacpage version

These command should print the help and version of the program. Please create an issue if this is not the case.

Updating

  1. Navigate to the directory where you cloned the bacpage repository on the command line:
cd bacpage/
  1. Activate the bacpage conda environment:
mamba activate bacpage
  1. Pull the lastest changes from GitHub:
git pull
  1. Update the bacpage conda environemnt:
mamba env update -f environment.yaml
  1. Reinstall the bacpage command:
pip install .

Usage

  1. Activate the bacpage conda environment:
mamba activate bacpage
  1. Create a directory specifically for the batch of samples you would like to analyze (called a project directory).
bacpage setup [your-project-directory-name]
  1. Place paired sequencing reads in the input/ directory of your project directory.
  2. From the pipeline's directory, run the reference-based assembly pipeline on your samples using the following command:
bacpage assemble [your-project-directory-name]

This will generate a consensus sequence in FASTA format for each of your samples and place them in <your-project-directory-name>/results/consensus_sequences/<sample>.masked.fasta. An HTML report containing alignment and quality metrics for your samples can be found at <your-project-directory-name>/results/reports/qc_report.html.

Metadata

Release files for bacpage 2024.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bacpage 2024.3.8
File Size Uploaded
bacpage-2024.3.8.tar.gz 1.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for bacpage 2024.3.8
File Interpreter ABI Platform
bacpage-2024.3.8-py3-none-any.whl Python 3 none any Details

Total release size: 2.7 MB

Release files / bacpage-2024.3.8.tar.gz

Download URL bacpage-2024.3.8.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
54b1194fd303bec7f042fde3d825c8253e31d63210d9bcb5a105a78dbb7e2c1c
BLAKE2b-256 checksum
How to use checksums
559d386e385207e48fd23c5ed43ea79a1ed7c0f3dffcff2475088b5270104e1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / bacpage-2024.3.8-py3-none-any.whl

Download URL bacpage-2024.3.8-py3-none-any.whl
Size 1.4 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7b6b2d4e312f7768026f679cd5004cb24d2bce5596f1acca6f686eb53111be1d
BLAKE2b-256 checksum
How to use checksums
be2031714d7d254e4e2bdb190dab7a3b3b09c2ba42e3d1424130faf9ed7c50dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

2024.3.8 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page