Skip to main content

A python module to process minion fastq files by concatenating reads as they are generated

Project description

Fastq Handler

PyPI version PyPI pyversions PyPI license PyPI status PyPI format

A python module to process ONT fastq files by concatenating reads as they are generated during a sequencing run

INTRODUCTION

The fastqc-handler module screens folders and subfolders for fastq (fastq or fastq.gz format) files and concatenates them iteratively. This is useful for merging same-sample reads that are split into multiple files, as commonly obtained in ONT sequencing. The output is a one file per output fastq.gz, containing all reads from the previous files. The output directory structure is maintained.

INPUT

A directory containing fastq files. The files can be in subfolders (each representing a different sample). The files can be gzipped or not.

USAGE

usage: fastq_handler [-h] [-i INPUT] [-o OUTPUT] [-n TAG] [--keep_names]

parse arguments

optional arguments:
    -h, --help            show this help message and exit
    -i INPUT, --input INPUT
                        Input directory
    -o OUTPUT, --output OUTPUT
                        Output directory
    -n TAG, --tag TAG     Tag to add to output file name
    --keep_names          Keep original file names in output file
    --max-size MAX_SIZE   max size of the output file, in kilobytes

REQUIREMENTS

Modules

  • dataclasses==0.6
  • natsort==8.3.1
  • pandas==1.5.3
  • setuptools==57.4.0
  • xopen==1.7.0

INSTALLATION

python -m venv .venv
source .venv/bin/activate
python -m pip install fastq-handler

MAIN OUTPUTS

Note: The output directory structure is maintained.

  • fastq.gz files containing all reads from the previous files.
  • log.txt file containing the concatenation process.

Maintainers

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

fastq_handler-0.1.3.tar.gz (21.0 kB view details)

Uploaded Source

Built Distribution

fastq_handler-0.1.3-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file fastq_handler-0.1.3.tar.gz.

File metadata

  • Download URL: fastq_handler-0.1.3.tar.gz
  • Upload date:
  • Size: 21.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.4.0-146-generic

File hashes

Hashes for fastq_handler-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2190c22dd3b445a80b1531967bd04d5a9cbd50606a513cae42109cf046107f4b
MD5 362eb1cd3bbdc6ca9c8a15b44165d26a
BLAKE2b-256 4fb1c99e7b0f825a4c3e2eb1b00006accea4a4808b01032ff744931191a0a945

See more details on using hashes here.

File details

Details for the file fastq_handler-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: fastq_handler-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.4.0-146-generic

File hashes

Hashes for fastq_handler-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b8e1abe5b427b3fd1484764958a61f9e5b135f12b25cebd3235ba4df8688b02e
MD5 e6dc6d991ca608f2dedd214fac32d3bc
BLAKE2b-256 cc22a57cd44f9c07b6c1ce9881da4dad81d03111984083d536abe401f7997b1d

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