All Projects → marcelm → dnaio

marcelm / dnaio

Licence: MIT license
Read and write FASTQ and FASTA efficiently from Python

Programming Languages

python
139335 projects - #7 most used programming language
cython
566 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to dnaio

rkmh
Classify sequencing reads using MinHash.
Stars: ✭ 42 (+55.56%)
Mutual labels:  bioinformatics
tibanna
Tibanna helps you run your genomic pipelines on Amazon cloud (AWS). It is used by the 4DN DCIC (4D Nucleome Data Coordination and Integration Center) to process data. Tibanna supports CWL/WDL (w/ docker), Snakemake (w/ conda) and custom Docker/shell command.
Stars: ✭ 61 (+125.93%)
Mutual labels:  bioinformatics
go4bio
Golang for Bioinformatics
Stars: ✭ 27 (+0%)
Mutual labels:  bioinformatics
codon-usage-tables
📊 Codon usage tables in code-friendly format + Python bindings
Stars: ✭ 21 (-22.22%)
Mutual labels:  bioinformatics
hotsub
Command line tool to run batch jobs concurrently with ETL framework on AWS or other cloud computing resources
Stars: ✭ 29 (+7.41%)
Mutual labels:  bioinformatics
compomics-utilities
Open source Java library for computational proteomics
Stars: ✭ 24 (-11.11%)
Mutual labels:  bioinformatics
CeleScope
Single Cell Analysis Pipelines
Stars: ✭ 36 (+33.33%)
Mutual labels:  bioinformatics
ntHash
Fast hash function for DNA sequences
Stars: ✭ 66 (+144.44%)
Mutual labels:  bioinformatics
NeuroSEED
Implementation of Neural Distance Embeddings for Biological Sequences (NeuroSEED) in PyTorch (NeurIPS 2021)
Stars: ✭ 40 (+48.15%)
Mutual labels:  bioinformatics
simplesam
Simple pure Python SAM parser and objects for working with SAM records
Stars: ✭ 50 (+85.19%)
Mutual labels:  bioinformatics
admixr
An R package for reproducible and automated ADMIXTOOLS analyses
Stars: ✭ 20 (-25.93%)
Mutual labels:  bioinformatics
slamdunk
Streamlining SLAM-seq analysis with ultra-high sensitivity
Stars: ✭ 24 (-11.11%)
Mutual labels:  bioinformatics
wdlRunR
Elastic, reproducible, and reusable genomic data science tools from R backed by cloud resources
Stars: ✭ 34 (+25.93%)
Mutual labels:  bioinformatics
paccmann datasets
pytoda - PaccMann PyTorch Dataset Classes. Read the docs: https://paccmann.github.io/paccmann_datasets/
Stars: ✭ 15 (-44.44%)
Mutual labels:  bioinformatics
sc2-illumina-pipeline
Bioinformatics pipeline for SARS-CoV-2 sequencing at CZ Biohub
Stars: ✭ 18 (-33.33%)
Mutual labels:  bioinformatics
sirius
SIRIUS is a software for discovering a landscape of de-novo identification of metabolites using tandem mass spectrometry. This repository contains the code of the SIRIUS Software (GUI and CLI)
Stars: ✭ 32 (+18.52%)
Mutual labels:  bioinformatics
pyrpipe
Reproducible bioinformatics pipelines in python. Import any Unix tool/command in python.
Stars: ✭ 53 (+96.3%)
Mutual labels:  bioinformatics
saffrontree
SaffronTree: Reference free rapid phylogenetic tree construction from raw read data
Stars: ✭ 17 (-37.04%)
Mutual labels:  bioinformatics
biolink-api
API for linked biological knowledge
Stars: ✭ 54 (+100%)
Mutual labels:  bioinformatics
RNArtistCore
A Kotlin DSL and library to create and plot RNA 2D structures
Stars: ✭ 20 (-25.93%)
Mutual labels:  bioinformatics

GitHub Actions badge

PyPI badge Codecov badge

dnaio processes FASTQ and FASTA files

dnaio is a Python 3.7+ library for very efficient parsing and writing of FASTQ and also FASTA files. The code was previously part of the Cutadapt tool and has been improved significantly since it has been split out.

Example usage

The main interface is the dnaio.open function:

import dnaio

with dnaio.open("reads.fastq.gz") as f:
    bp = 0
    for record in f:
        bp += len(record)
print(f"The input file contains {bp/1E6:.1f} Mbp")

See the documentation for more.

Features and supported file types

  • FASTQ input and output
  • FASTA input and output
  • Compressed input and output (.gz, .bz2 and .xz, detected automatically)
  • Paired-end data in two files
  • Interleaved paired-end data in a single file
  • Files with DOS/Windows linebreaks can be read
  • FASTQ files with a second header line (after the +) are supported

Limitations

  • Multi-line FASTQ files are not supported.
  • FASTQ parsing is the focus of this library. The FASTA parser is not as optimized.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].