FASTX trimming tools
Project description
fastx-barber
A Python3.6.1+ 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.
- 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.6.1, 3.7, and 3.8. 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 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 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
Built Distribution
Hashes for fastx_barber-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 288d12f587a7bce1ae61d9ffeb7ae89e25680496ffb8faaba681fb2ba4124cc1 |
|
MD5 | 9795f6d52fde2d177c88609636bbe22c |
|
BLAKE2b-256 | fed1bb1d4185309cadb8aa22f0857f5286db0c6f20676fc807437eae86c8c70a |