bb_fastq_to_fasta - ampinzonv/BB3 GitHub Wiki

Function: bb_fastq_to_fasta

Convert a FASTQ file to FASTA format.


๐Ÿ” Description

This function extracts the sequence and identifier lines from a FASTQ file and converts them into FASTA format.

๐Ÿ“ฅ Input

  • A FASTQ file with sequencing reads.
  • STDIN is supported via --input -.

๐Ÿ“ค Output

  • A FASTA-formatted stream or file.

๐Ÿงช Examples

bb_fastq_to_fasta --input reads.fastq
cat reads.fastq | bb_fastq_to_fasta --input -
bb_fastq_to_fasta --input reads.fastq --outfile reads.fasta

โš™๏ธ Usage

bb_fastq_to_fasta --input FILE [--outfile FILE] [--quiet] [--force]

๐Ÿงต Options

Option Description
--input FILE Input FASTQ file or - for STDIN (required)
--outfile FILE Output FASTA file (optional, default: STDOUT)
--quiet Suppress informational messages
--force Overwrite output file if it exists

๐Ÿ“Œ Notes

  • This function ignores the quality lines from the FASTQ file.
  • Useful for compatibility with FASTA-only tools or pipelines.