-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add resistance gene depth qc #14
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great. Just a few small changes.
bin/calculate_res_gene_depth_qc.py
Outdated
for line in bed_file: | ||
fields = line.strip().split() | ||
gene_name = fields[3] | ||
start_position = int(fields[1]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may need to add 1 to the start position in the bed file to make it consistent with the start position in the depths file.
https://www.htslib.org/doc/samtools-mpileup.html#Pileup_Format
https://en.wikipedia.org/wiki/BED_(file_format)
https://en.wikipedia.org/wiki/General_feature_format
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, fixed here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, one more change. Can you add a 'shebang' line to the top of the script?
#!/usr/bin/env python3
solution for calculating gene coverage from #12
Note: double check calculate_res_gene_depth.py is indexing the genome position correctly and confirm calculation is correct for one sample/gene before merging.