-
Notifications
You must be signed in to change notification settings - Fork 19
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
Ensure chrX and X are treated equally #135
Conversation
7f802ed
to
7d1e341
Compare
6677c92
to
9b143ef
Compare
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.
Suggestion in code to reduce code duplication, rest looks great. 👍
variant: Dict[str, str] = get_variant_dict(line, header.header) | ||
variant['info_dict'] = get_info_dict(variant['INFO']) | ||
yield variant | ||
|
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.
One suggestion would be to move the variant generation methods into a fixture in the functionality
module, so that we reduce duplicate code, related fellen31@bc15a2f
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.
Thanks for the review @torbjorgen, I'll look into moving it into a fixture, and just ping you afterwards so you can make sure it looks ok.
I don't think I have enough experience with pytest yet @torbjorgen to fully understand how to best solve this. I don't want to make the codebase worse, but I also know this project is not a priority. Is moving the common functions to a test_utils.py an okay middle way to reduce code duplication without dealing with pytest fixtures? |
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.
Yes excellent solution. Let's not overdo it 👍
Description
Closes #132.
Adds a VCF file with
chr
prefix, and a test to check that models are equal between both files. I don't know that much python/pytest so let me know if the code can be improved.Added
Changed
Fixed
chrX
and notX
.How to prepare for test
us
paxa
How to test
Expected test outcome
Review
Thanks for filling in who performed the code review and the test!
This version is a
Implementation Plan