Skip to content

Commit

Permalink
Fix gfa test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris7 committed Oct 22, 2024
1 parent 34b1b66 commit 38c0659
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions fixtures/simple.gfa
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
H VN:Z:1.2
S 1 ATC SN:Z:123 SO:i:0 SR:i:0
S 2 GATCGATCGA SN:Z:123 SO:i:1 SR:i:0
S 3 TCGATCGGG SN:Z:123 SO:i:2 SR:i:0
S 4 AACACACAGAGA SN:Z:123 SO:i:6 SR:i:0
S 1 ATC SN:Z:m123 SO:i:0 SR:i:0
S 2 GATCGATCGA SN:Z:m123 SO:i:3 SR:i:0
S 3 TCGATCGGG SN:Z:m123 SO:i:13 SR:i:0
S 4 AACACACAGAGA SN:Z:m123 SO:i:22 SR:i:0
L 1 + 2 + *
L 2 + 3 + *
L 3 + 4 + *
Expand Down
4 changes: 2 additions & 2 deletions src/imports/gfa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ mod tests {
"select * from path where block_group_id = ?1 AND name = ?2",
vec![
SQLValue::from(block_group_id),
SQLValue::from("124".to_string()),
SQLValue::from("m123".to_string()),
],
)[0]
.clone();

let result = Path::sequence(conn, path);
assert_eq!(result, "ATGGCATATTCGCAGCT");
assert_eq!(result, "ATCGATCGATCGATCGATCGGGAACACACAGAGA");

let node_count = Node::query(conn, "select * from nodes", vec![]).len() as i64;
assert_eq!(node_count, 6);
Expand Down

0 comments on commit 38c0659

Please sign in to comment.