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
55
//! GECCO: Gene Cluster prediction with Conditional Random Fields.
//!
//! This crate provides both a CLI tool and a library API for identifying
//! putative Biosynthetic Gene Clusters (BGCs) in genomic and metagenomic data.
//!
//! # Library usage
//!
//! The easiest way to use GECCO as a library is through the [`Gecco`] struct:
//!
//! ```no_run
//! use gecco::Gecco;
//! use gecco::orf::SeqRecord;
//!
//! let pipeline = Gecco::builder()
//! .data_dir("gecco_data")
//! .threshold(0.8)
//! .build()
//! .unwrap();
//!
//! let records = vec![SeqRecord {
//! id: "contig_1".into(),
//! seq: "ATGCCC...".into(),
//! }];
//!
//! let results = pipeline.scan(&records).unwrap();
//! for cluster in &results.clusters {
//! println!("{}: {} genes", cluster.id, cluster.genes.len());
//! }
//! ```
//!
//! For finer control, individual pipeline stages are also available as public
//! methods on [`Gecco`], or through the lower-level modules directly.
// Re-export key types at crate root for convenience.
pub use ;
pub use SeqRecord;
pub use ;