Skip to content

Commit

Permalink
finish haploid fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ACEnglish committed Jun 25, 2024
1 parent 3955b92 commit e798f09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/kplib/annotator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fn haploid(
coverage: u64,
) -> GenotypeAnno {
if paths.is_empty() {
let (gq, gt_str, gt_state) = match coverage == 0 {
let (gt_str, gq, gt_state) = match coverage == 0 {
true => (".", 0, metrics::GTstate::Non),
false => ("0", 100, metrics::GTstate::Ref),
};
Expand All @@ -231,13 +231,13 @@ fn haploid(

return GenotypeAnno {
entry,
gt: gt_str,
gt: gt_str.to_string(),
filt,
sq: 0,
gq,
dp: coverage as i32,
ad: vec![coverage as i32, 0],
ks: 0,
ad: vec![Some(coverage as i32), Some(0)],
ks: vec![],
gt_state,
};
}
Expand Down

0 comments on commit e798f09

Please sign in to comment.