Skip to main content

FASTX trimming tools

Project description

fastx-barber

DOI Release ID Release date
PyPI - Python Version PyPI - Status GitHub Actions Python package status
license Code size
Watch no. Stars no.

PyPi | docs

A Python3.8+ package to trim and extract flags from FASTA and FASTQ files.

Features (in short)

  • Works on both FASTA and FASTQ files.
  • Selects reads based on a pattern (regex).
  • Trims reads by pattern (regex), length, or single-base quality.
  • Extracts parts (flags) of reads based on a pattern and stores them in the read headers.
  • Generates BED file with the locations of a substring in FASTX records.
  • Regular expression support fuzzy matching (fuzzy matching might affect the barber's speed).
  • Parallelizes processing by splitting the fastx file in chunks.

For more available features, check out our docs!

Requirements

fastx-barber has been tested with Python 3.8 and 3.9. We recommend installing it using pipx (see below) to avoid dependency conflicts with other packages. The packages it depends on are listed in our dependency graph. We use poetry to handle our dependencies.

Install

We recommend installing fastx-barber using pipx. Check how to install pipx here if you don't have it yet!

Once you have pipx ready on your system, install the latest stable release of fastx-barber by running: pipx install fastx-barber. If you see the stars (✨ 🌟 ✨), then the installation went well!

Usage

Run:

  • fbarber to access the barber's services.
  • fbarber find_seq to extract the locations of a sequence (e.g., restriction site) in FASTX records.
  • fbarber flag to extract or manipulate read flags.
  • fbarber match to select reads based on a pattern (regular expression).
  • fbarber trim to trim your reads.

Add -h to see the full help page of a command!

Contributing

We welcome any contributions to fastx-barber. In short, we use black to standardize code format. Any code change also needs to pass mypy checks. For more details, please refer to our contribution guidelines if this is your first time contributing! Also, check out our code of conduct.

License

MIT License - Copyright (c) 2020-21 Gabriele Girelli

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

fastx-barber-0.1.5.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

fastx_barber-0.1.5-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

Details for the file fastx-barber-0.1.5.tar.gz.

File metadata

  • Download URL: fastx-barber-0.1.5.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.5 Linux/5.4.0-74-generic

File hashes

Hashes for fastx-barber-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4b65e983e6e71ac99165f5f35c9c300b7c3de695ede7e74eca702d065504911d
MD5 52b8162591877537e84e953aa9049a86
BLAKE2b-256 2c3111d64d853043b60c0d232b70521f55bea0dd39b895fc43f26fa78d2ff806

See more details on using hashes here.

File details

Details for the file fastx_barber-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: fastx_barber-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.5 CPython/3.8.5 Linux/5.4.0-74-generic

File hashes

Hashes for fastx_barber-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 cebb25b76fc27cf89c328783d80981ace5cc32083459cc2414f2abc073f12e8c
MD5 a751f5f9f614a739f3a8577d7905dce5
BLAKE2b-256 58a8acdc794e274da5f0b4b64c3cac1ced35191dfbe5a107e5fe8c4f7f12f283

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