Skip to content

Commit

Permalink
put an incremental number as id instead of all zeros
Browse files Browse the repository at this point in the history
this fixes #5
  • Loading branch information
AndreaGuarracino committed Oct 17, 2022
1 parent 1609bcc commit d327468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fn main() {
let filename = matches.value_of("INPUT").unwrap();
let paf = PafFile::new(filename);

let mut id = 0;
let cigar_to_chain = |line: &str| {
let query_rev = paf_query_is_rev(line);
//let (x, y) = paf.global_start(line, query_rev);
Expand Down Expand Up @@ -76,7 +77,6 @@ fn main() {
let q_strand = if query_rev { "-" } else { "+" };
let q_start = paf_query_begin(line);
let q_end = paf_query_end(line);
let id = 0;
for mut cigar in cigars {
//println!("{}", cigar);

Expand Down Expand Up @@ -156,6 +156,7 @@ fn main() {
chain_q_start, chain_q_end,
id
);
id += 1;

let mut ungapped_alignment_len: usize = 0;
let mut query_delta: usize = 0;
Expand Down

0 comments on commit d327468

Please sign in to comment.