POA in Rust
After cloning the repository from GitHub, move to its main directory and compile the package with
cargo build --release
To use rspoa you need a .gfa file and a .fasta file containing the reads you want to align to the graph. In order to run rspoa:
cargo run --release <reads.fa> <graph.gfa>
You can set different parameters and choose between different alignment types:
```
OPTIONS:
-h, --help Print help information
-V, --version Print version information
I/O:
Alignment:
-m, --aln-mode
Adaptive banded:
-b, --extra-b
The output is in .gaf format, in reference to the graph in input.
```
read1 50 0 50 + >1>3>5>6>8>9>11>12>13>15>16>18>19 50 0 11 49 * * 8M,1M,1M,3M,1M,4M,5M,2M,8M,1M,4M,1M,11M ```
Library
rsPOA can also be used as a library for your project.
In order to do so add to your Cargo.toml file:
[dependencies]
rspoa= { git = "https://github.com/AlgoLab/rspoa" }
In this case you can use the functions inside the api.rs file, they need only the read as a string and the graph as an HashGraph, other parameters can be set or left by default.
You can use them by adding use rspoa::api::*
in your file.