Skip to main content

Module fasta

Module fasta 

Source
Expand description

Parser for FASTA files using noodles.

Extracts contig names and lengths from FASTA files. Supports both uncompressed and gzip/bgzip compressed files.

Supported extensions:

  • .fa, .fasta, .fna (uncompressed)
  • .fa.gz, .fasta.gz, .fna.gz (gzip compressed)
  • .fa.bgz, .fasta.bgz, .fna.bgz (bgzip compressed)

Functionsยง

is_fasta_file
Check if the path has a FASTA extension
parse_fasta_file
Parse a FASTA file and extract contig names and lengths.
parse_fasta_file_with_md5
Parse a FASTA file and compute MD5 checksums for each sequence.