{"library":"pyfastx","title":"pyfastx","description":"pyfastx is a Python module for fast random access to sequences from plain and gzipped FASTA/Q files. It provides an efficient, low-memory interface for reading, indexing, and querying biological sequences. Current version: 2.3.0, release cadence is irregular with updates about every 6-12 months.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install pyfastx"],"cli":null},"imports":["import pyfastx"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pyfastx\n\n# Open a FASTA file (autodetects gzipped)\nfa = pyfastx.Fasta('example.fasta')\n\n# Get sequence count\nprint(fa.size)  # number of sequences\n\n# Random access by sequence ID\nseq = fa['chr1']\nprint(seq.seq[:10])  # first 10 bases\n\n# Iterate over all sequences\nfor seq in fa:\n    print(seq.id, len(seq))\n\n# For FASTQ:\nfq = pyfastx.Fastq('example.fastq')\nfor read in fq:\n    print(read.id, read.qual)\n","lang":"python","description":"Basic usage: open a FASTA or FASTQ file, iterate, access by ID.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}