Skip to main content

rsomics_bam/
lib.rs

1#![deny(unsafe_code)]
2
3//! Programmatic interfaces for the rsomics SAM, BAM, and CRAM product.
4
5/// Alignment read-group editing.
6pub mod addreplacerg;
7/// Amplicon primer clipping.
8pub mod ampliconclip;
9/// Amplicon sequencing statistics.
10pub mod ampliconstats;
11/// Coverage totals over BED regions.
12pub mod bedcov;
13/// Alignment MD and NM tag recalculation.
14pub mod calmd;
15/// Compressed-block BAM concatenation.
16pub mod cat;
17/// Content checksums for alignment and sequence data.
18pub mod checksum;
19/// Bounded-memory read-name collation.
20pub mod collate;
21/// Per-reference alignment coverage summaries.
22pub mod coverage;
23mod coverage_hts;
24/// CRAM physical-storage diagnostics.
25pub mod cram_size;
26/// Padded-reference alignment projection.
27pub mod depad;
28/// Per-position alignment depth.
29pub mod depth;
30/// Name-grouped FASTA and FASTQ extraction.
31pub mod fastx;
32/// Mate-field repair for name-grouped alignments.
33pub mod fixmate;
34/// SAM flag parsing and rendering.
35pub mod flags;
36/// Alignment flag statistics.
37pub mod flagstat;
38/// Header and leading-record inspection.
39pub mod head;
40/// Per-reference index or stream statistics.
41pub mod idxstats;
42/// FASTQ conversion to unmapped alignment records.
43pub mod import;
44/// Alignment random-access index construction.
45pub mod index;
46/// Coordinate-sorted duplicate marking.
47pub mod markdup;
48/// Ordered alignment merging.
49pub mod merge;
50/// Per-position pileup generation.
51pub mod mpileup;
52/// Read-backed heterozygous SNP phasing.
53pub mod phase;
54/// Alignment-header program provenance.
55mod program;
56/// Alignment integrity checks.
57pub mod quickcheck;
58mod raw_aux;
59/// Reference reconstruction from alignment evidence.
60pub mod reference;
61/// Compressed-block BAM header replacement.
62pub mod reheader;
63/// Alignment reset to unaligned reads.
64pub mod reset;
65/// Read-group sample metadata.
66pub mod samples;
67/// Bounded-memory alignment sorting.
68pub mod sort;
69/// Alignment partitioning.
70pub mod split;
71/// Comprehensive alignment statistics.
72pub mod stats;
73/// Alignment conversion to BED intervals.
74pub mod to_bed;
75/// Terminal, text, and HTML alignment viewer.
76pub mod tview;
77/// Alignment filtering and format conversion.
78pub mod view;
79
80pub use program::Program;
81
82mod alignment_order;
83mod alignment_stream;
84mod amplicon;
85mod bgzf_rewrite;
86mod cli;
87mod commands;
88mod consensus;
89mod errmod;
90mod filter;
91mod header_merge;
92mod header_source;
93mod hts_metadata;
94mod hts_quickcheck;
95mod input;
96mod md;
97mod output;
98
99#[must_use]
100pub fn run_binary() -> std::process::ExitCode {
101    cli::run()
102}