Skip to content

Commit

Permalink
applicativesystem
Browse files Browse the repository at this point in the history
finished the embedded code today and pushing it now as not internet during the day. Wrote a deep learning model after this. See the application of the embedded approach to create visual alignments with subsequent approach. final and binary release.
  • Loading branch information
sciencegenome committed Nov 26, 2024
1 parent c49d554 commit 7a0acdf
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"rust-analyzer.diagnostics.useRustcErrorCode": true
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@
```
cargo build
```
```
λ gauravsablok rust-view-aln → λ git master* → ./target/debug/rust-view-aln -h
Usage: rust-view-aln <ALIGNMENT_ARG>
Arguments:
<ALIGNMENT_ARG> please provide the reads R1 file path
Options:
-h, --help Print help
-V, --version Print version
```

```
Expand Down
Binary file modified embedded_alignment_visualization.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 11 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ fn alignment_embedded_mismatch(path: &str) {
for i in 0..finalholdseq_multivector.len()-1{
for j in 0..finalholdseq_multivector[0].len(){
if finalholdseq_multivector[i][j] !=
finalholdseq_multivector[i+1][j] {
finalholdseq_multivector[i+1][j] && finalholdseq_multivector[i][j].to_string() != "-"
&& finalholdseq_multivector[i+1][j].to_string() != "-" {
println!("{}\t{}{}", j, finalholdseq_multivector[i][j].to_string().blue().bold(),
finalholdseq_multivector[i+1][j].to_string().red().bold())
} else {
Expand Down Expand Up @@ -171,7 +172,15 @@ fn alignment_embedded_gapped(path: &str) {
finalholdseq_multivector[i][j].to_string() == "-"
&& finalholdseq_multivector[i+1][j].to_string() == "G" ||
finalholdseq_multivector[i][j].to_string() == "-"
&& finalholdseq_multivector[i+1][j].to_string() == "C" {
&& finalholdseq_multivector[i+1][j].to_string() == "C" ||
finalholdseq_multivector[i][j].to_string() == "A"
&& finalholdseq_multivector[i+1][j].to_string() == "-" ||
finalholdseq_multivector[i][j].to_string() == "T"
&& finalholdseq_multivector[i+1][j].to_string() == "-" ||
finalholdseq_multivector[i][j].to_string() == "G"
&& finalholdseq_multivector[i+1][j].to_string() == "-" ||
finalholdseq_multivector[i][j].to_string() == "C"
&& finalholdseq_multivector[i+1][j].to_string() == "-" {
println!("{}\t{}{}", j, finalholdseq_multivector[i][j].to_string().white().bold(),
finalholdseq_multivector[i+1][j].to_string().red().bold())
} else {
Expand Down

0 comments on commit 7a0acdf

Please sign in to comment.