-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: ensure FileBasedVariantLookup is used as a context manager (#71)
The [`FileBasedVariantLookup`](https://prymer.readthedocs.io/en/latest/reference/prymer/api/variant_lookup.html#prymer.api.variant_lookup.FileBasedVariantLookup) opens one or more [`pysam.VariantFile`](https://pysam.readthedocs.io/en/latest/api.html#pysam.VariantFile) objects but provides no public API for [closing them](https://pysam.readthedocs.io/en/latest/api.html#pysam.VariantFile.close). The file-based lookup should have a public method for closing the file handles and should also support use as a context manager so there are safe ways to cleanup IO resources. Closes: #27
- Loading branch information
Showing
3 changed files
with
106 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters