dnacalc-0.1.1 is not a library.
A Calculator for DNA
dnacalc is a lightweight command-line tool that converts DNA (and RNA) base-pair counts into human-readable units.
Installation
Install from crates.io with Cargo:
Alternatively, build from source:
Usage
dnacalc [OPTIONS] <BASE_PAIRS>
Convert a base-pair count using automatically selected units:
# 11.2 Kbp
# 11.2 Mbp
Force a specific unit with one of the unit flags:
# 11.2 Kbp
# 0.0112 Mbp
# 0.0112 Gbp
Remove the space between the number and unit:
# 11.2Kbp
# 11.2Mbp
Grouping separators are supported:
Use -h or --help to display the available options:
Units
| Flag | Unit | Meaning |
|---|---|---|
| (default) | bp |
Base pairs |
-k |
Kbp |
Kilobase pairs |
-m |
Mbp |
Megabase pairs |
-g |
Gbp |
Gigabase pairs |
-t |
Tbp |
Terabase pairs |
-p |
Pbp |
Petabase pairs |