1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// (c) Copyright 2020 Trent Hauck
// All Rights Reserved
//! # brrrr
//!
//! `brrrr` and in particular, `brrrr_lib`, is a library for supporting writing genomics file
//! formats in file formats that are usable by general-purpose analytics infrastructure, e.g.
//! Spark.
//!
//! ## Quick Start
//!
//! For example, to write a FASTA file to the stdout.
//!
//! ```rust
//! use std::io::stdout;
//!
//! use brrrr_lib::json_writer::fa2jsonl;
//!
//! fn main() {
//! let example_input = b">A\nATCG\n>B\nGCTA" as &[u8];
//! fa2jsonl(example_input, &mut stdout()).expect("Error... :(");
//! }
//! ```
//!
//! `fa2jsonl` relies on `JsonRecordWriter`, which knows how to parse the input fasta bytes and
//! write them to objects that implement `Write`.
//!
//! If you're interested in the CLI, see: <https://github.com/tshauck/brrrr/releases/latest>
/// json_writer holds a writer, and outputs FASTA and GFF records as newline delimited json.
/// csv_writer holds a writer, and outputs FASTA and GFF records as csv.
/// parquet_writer holds a writer, and outputs FASTA and GFF records as parquet.
/// parquet_reader is like parquet_writer, but for reading parquet in.
/// Interface for the generic writer object.
/// Types used within the library.
/// Custom brrrr errors.