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

Check snpit results against tbprofiler and correct when necessary #21

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

dfornika
Copy link
Member

@dfornika dfornika commented Feb 6, 2024

Fixes #18

This is the approach taken:

  • Check the outputs from snpit. If the Species is not N/A, then make no changes.
  • If the Species is N/A then check the lineages in the tbprofiler full_report.json file. If the main_lin is lineage4 and the pct_reads_mapped is above 98% then:
  • Change Species to M. tuberculosis
  • Change Lineage to match the main_lin value from tbprofiler (should be Lineage 4)
  • Change Percentage to N/A (since the outputs are not directly based on SNP genotypes)

Copy link
Collaborator

@taranewman taranewman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@dfornika dfornika merged commit dfbf7fa into main Feb 6, 2024
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

Successfully merging this pull request may close these issues.

snpit reports species N/A when genotype closely matches H37Rv
2 participants