Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ebedthan/fastchaos

(Integer) chaos game representation for DNA sequences
https://github.com/ebedthan/fastchaos

bioinformatics chaos-game-representation integer-chaos-game-representation rust

Last synced: about 1 month ago
JSON representation

(Integer) chaos game representation for DNA sequences

Awesome Lists containing this project

README

        

# fastchaos










## About
`fastchaos` implement [integer chaos game representation (iCGR) algorithm](https://www.liebertpub.com/doi/abs/10.1089/cmb.2018.0173) for DNA sequence encoding and decoding. `fastchaos` is the first complete implementation of the algorithm in a bioinformatic tool aiming at users. It also add to the original algorithm a output file format which is a `zst` compressed JSON file containing the 3 integers of 100bp subsequences of the supplied sequence. This allow fast encoding and decoding.

`fastchaos` also implements [chaos game representation (CGR) of DNA sequence](https://academic.oup.com/nar/article-abstract/18/8/2163/2383530) in a fast tool that draw the representation of a sequence and can compare the CGR image using the [DSSIM algorithm](https://github.com/kornelski/dssim/).

## Installation

```bash
git clone https://github.com/Ebedthan/fastchaos.git
cd fastchaos
cargo build --release
```

## User guide

```bash
# Encoding DNA sequence into integer chaos game representation
fastchaos encode seq.fa

# Decoding integer chaos game representation into DNA sequence
fastchaos decode seq.icgr

# Draw chaos game representation of DNA sequence
fastchaos draw seq.fa

# Compare multiple chaos game representation image using DSSIM
fastchaos compare images_dir
```

For full details, do `fastchaos -h`.

### Requirements
- [Rust](https://rust-lang.org) in stable channel

### Minimum Rust version policy
This crate's minimum supported `rustc` version is `1.74.1`.

### Note
`fastchaos` use colored output in help, nevertheless `fastchaos` honors [NO_COLORS](https://no-color.org/) environment variable.

### Bugs
Submit problems or requests to the [Issue Tracker](https://github.com/Ebedthan/fastchaos/issues).

### License
Licensed under the MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT).