Skip to main content

No project description provided

Project description

Variant Sequencing with Nanopore

In directed evolution, sequencing every variant enhances data insight and creates datasets suitable for AI/ML methods. This method is presented as an extension of the original Every Variant Sequencer using Illumina technology. With this approach, sequence variants can be generated within a day at an extremely low cost.

Figure 1: LevSeq Workflow Figure 1: Overview of the LevSeq variant sequencing workflow using Nanopore technology. This diagram illustrates the key steps in the process, from sample preparation to data analysis and visualization.

Setup

For setting up the experimental side of LevSeq we suggest the following preparations:

  • Order forward and reverse primers compatible with the desired plasmid, see methods section of our paper.
  • Successfully install Oxford Nanopore's software (this is only for if you are doing basecalling/minION processing). Link to installation guide.

How to Use LevSeq

The wet lab part is detailed in the method section of the paper.

Once samples are prepared, the multiplexed sample is used for sequencing, and the sequencing data is stored in the ../data folder as per the typical Nanopore flow (refer to Nanopore documentation for this).

After sequencing, you can identify variants, demultiplex, and combine with your variant function here! For simple applications, we recommend using the notebook example/Example.ipynb.

Steps of LevSeq:

  1. Basecalling: This step converts Nanopore's FAST5 files to sequences. For basecalling, we use Nanopore's basecaller, Medaka, which can run in parallel with sequencing (recommended) or afterward.

  2. Demultiplexing: After sequencing, the reads, stored as bulk FASTQ files, are sorted. During demultiplexing, each read is assigned to its correct plate/well combination and stored as a FASTQ file.

  3. Variant Calling: For each sample, the consensus sequence is compared to the reference sequence. A variant is called if it differs from the reference sequence. The success of variant calling depends on the number of reads sequenced and their quality.

Installation:

We aimed to make LevSeq as simple to use as possible, this means you should be able to run it all using pip. However, if you have issues we recomend using the Docker instance!

We recommend using command line interface(Terminal) and a conda environment for installation:

git clone https://github.com/fhalab/LevSeq.git
conda create --name levseq python=3.8 -y
conda activate levseq

From the LevSeq folder, install the package using pip:

pip install levseq

Dependencies

  1. Samtools: https://www.htslib.org/download/
conda install -c bioconda -c conda-forge samtools

or for mac users you can use: brew install samtools

  1. Minimap2: https://github.com/lh3/minimap2
conda install -c bioconda -c conda-forge minimap2

or for mac users you can use: brew install minimap2 Once dependencies are all installed, you can run LevSeq using command line. 3. GCC version 13 and 14 are both needed For Mac M chip users: installation via homebrew

brew install gcc@14
brew install gcc@13

For Linux users: installation via conda

conda install conda-forge::gcc=14
conda install conda-forge::gcc=13

Usage

Command Line Interface

LevSeq can be run using the command line interface. Here's the basic structure of the command:

levseq <name> <location to data folder> <location of reference csv file>

Required Arguments

  1. Name of the experiment, this will be the name of the output folder
  2. Location of basecalled fastq files, this is the direct output from using the MinKnow software for sequencing
  3. Location of reference csv file, this file includes information of barcodes used for each plate and the DNA sequence used for reference for each plate

Optional Arguments

--skip_demultiplexing If enabled, demultiplexing step will be skipped

--skip_variantcalling If enabled, variant valling step will be skipped

--output Save location for output, if not provided default to where the program is executed

--show_msa Showing multiple sequence alignment for each well

Docker Installation (Recommended for full pipeline)

For installing the whole pipeline, you'll need to use the docker image. For this, install docker as required for your operating system (https://docs.docker.com/engine/install/).

To build the docker image run (within the main folder that contains the Dockerfile):

docker build -t levseq .

This gives us the access to the lebSeq command line interface via:

docker run levseq

Note! The docker image should work with linux, and mac, however, different mac architectures may have issues (owing to the different M1/M3 processers.)

Basically the -v connects a folder on your computer with the output from the minION sequencer with the docker image that will take these results and then perform demultiplexing and variant calling.

 docker run -v /Users/XXXX/Documents/LevSeq/data:/levseq_results/ levseq 20240502 levseq_results/20240502/ levseq_results/20240502-YL-ParLQ-ep2.csv

In this command: /Users/XXXX/Documents/LevSeq/data is a folder on your computer, which contains a subfolder 20240502

Issues and Troubleshooting

If you have any issues, please check the LevSeq_error.log find in the output direectory and report the issue. If the problem persists, please open an issue on the GitHub repository with the error details.

If you solve something code wise, submit a pull request! We would love community input.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

levseq-1.0.2.tar.gz (342.6 kB view details)

Uploaded Source

Built Distribution

levseq-1.0.2-py3-none-any.whl (356.5 kB view details)

Uploaded Python 3

File details

Details for the file levseq-1.0.2.tar.gz.

File metadata

  • Download URL: levseq-1.0.2.tar.gz
  • Upload date:
  • Size: 342.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for levseq-1.0.2.tar.gz
Algorithm Hash digest
SHA256 4899c0a005d25e153e3f1b3ddcd54567e5784d761266682d63bc702165d1eb02
MD5 12c8302cf2ab2242140e817058180c75
BLAKE2b-256 92ff8e219f7cb0b0e89bf4abf3afe4a15a261173901c83d2d2ea5dd2c4fecc14

See more details on using hashes here.

File details

Details for the file levseq-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: levseq-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 356.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for levseq-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 919b2988b365e1c6c1eef9fe20f72e40fadb0798456851258539705b51a2aa59
MD5 33cf0c536a8c4d64af38901f948f9456
BLAKE2b-256 a063cbcfb028c4bb2e622ccb571b37468f354dd832181b745d2f4bf12b2e7cbb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page