[][src]Module needletail::parser

Handles all the FASTA/FASTQ parsing

Structs

FastaReader

Parser for FASTA files. Only use this directly if you know your file is FASTA and that it is not compressed as it does not handle decompression. If you are unsure, it's better to use parse_fastx_file.

FastqReader

Parser for FASTQ files. Only use this directly if you know your file is FASTQ and that it is not compressed as it does not handle decompression. If you are unsure, it's better to use parse_fastx_file.

SequenceRecord

A FASTA or FASTQ record

Enums

Format

FASTA or FASTQ?

LineEnding

Whether it uses \r\n or only \n

Traits

FastxReader

The main trait, iterator-like, that the FASTA and FASTQ readers implement

Functions

mask_header_tabs

Mask tabs in header lines to |s

mask_header_utf8

Convert bad UTF8 characters into �s

parse_fastx_file

The main entry point of needletail if you're reading from a file. Shortcut to calling parse_fastx_reader with a file

parse_fastx_reader

The main entry point of needletail if you're reading from something that impls std::io::Read This automatically detects whether the file is:

parse_fastx_stdin

The main entry point of needletail if you're reading from stdin. Shortcut to calling parse_fastx_reader with stdin()

write_fasta

Write a FASTA record

write_fastq