Giter VIP home page Giter VIP logo

fastx-barber's Introduction

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

fastx-barber's People

Contributors

ggirelli avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.