-
Notifications
You must be signed in to change notification settings - Fork 33
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
Hypothesis VCF #971
Hypothesis VCF #971
Conversation
Codecov Report
@@ Coverage Diff @@
## main #971 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 41 41
Lines 3841 4276 +435
==========================================
+ Hits 3841 4276 +435
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Very impressive!
sgkit/tests/io/vcf/hypothesis_vcf.py
Outdated
vcf_number: str | ||
|
||
def get_header(self): | ||
return f'##{self.category}=<ID={self.vcf_key},Type={self.vcf_type},Number={self.vcf_number},Description="{self.category},Type={self.vcf_type},Number={self.vcf_number}">' |
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'm surprised Black accepts this - any chance we could split it across multiple lines for the console based old fogeys?
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.
flake8
Line length errors are disabled in this repo (https://github.com/pystatgen/sgkit/blob/main/setup.cfg#L88) and black won't split stings unless you use --preview
(psf/black#1331)
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 @benjeffery. So presumably we'll pick that up in a future version of black.
Fixes #951
Example of a VCF that this produces:
One notable limitation is that it doesn't generate GT fields. This could be added later.
I've already found (and fixed) one problem with the VCF reader. There are more problems to fix with the writer, which I will address in follow up issues.