Skip to content

Commit

Permalink
fix: wrong tag for query end, cg tag is the same as sc
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Sep 20, 2023
1 parent 6c0cd8a commit bacc6a3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions fg-stitch-lib/src/align/aligners/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ impl<'a, F: MatchFunc> SamRecordFormatter<'a, F> {
noodles::sam::record::data::field::Value::from(sub.query_start as u32),
);
data.insert(
CustomTag::QueryStart.into(),
CustomTag::QueryEnd.into(),
noodles::sam::record::data::field::Value::from(sub.query_end as u32),
);
data.insert(
Expand Down Expand Up @@ -920,14 +920,6 @@ impl<'a, F: MatchFunc> SamRecordFormatter<'a, F> {
CustomTag::NumberOfChains.into(),
noodles::sam::record::data::field::Value::from(chains.len() as i32),
);
data.insert(
"cg".parse().unwrap(),
noodles::sam::record::data::field::Value::from_str_type(
&cigar_str,
noodles::sam::record::data::field::Type::String,
)
.unwrap(),
);
data.insert(
ALIGNMENT_SCORE,
noodles::sam::record::data::field::Value::from(sub.score),
Expand Down

0 comments on commit bacc6a3

Please sign in to comment.