Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on GC Content Increment for G/C Reference Deletions #16

Open
xianyu0623 opened this issue Sep 6, 2024 · 0 comments
Open

Comments

@xianyu0623
Copy link

Hello,

Firstly, I want to express my appreciation for this project! I’m currently learning Rust for bioinformatics, and your codebase is one of the best practical tutorials I’ve encountered. However, I’ve come across something in the code that I don’t fully understand, and I’m hoping for some clarification.

In the following section of the code:

best/src/stats.rs

Lines 470 to 474 in c1c69bb

let curr =
curr_ref_seq[Position::new(ref_pos).unwrap()].to_ascii_uppercase();
if curr == b'C' || curr == b'G' {
res.gc_content += 1.0;
}

During the processing of deletions, when a G or C is encountered in the reference, the GC content is incremented. Could you explain the reasoning behind this? My understanding is that a deletion would reduce the GC content since there would be fewer Gs or Cs in the read sample.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant