Skip to content

Commit

Permalink
working vcf load
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael J. Wilson committed Jan 31, 2024
1 parent ebc4415 commit 213403d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/foundation/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@


def calculate_pi(n: int) -> float:
"""
Basic calculation of pi
"""
result = 0.0

# Initialize denominator
Expand All @@ -20,7 +23,9 @@ def calculate_pi(n: int) -> float:


def load_vcf(fpath: str) -> VariantFile:
# NB auto-detect input format
"""
Load and print a VCF file
"""
vcf = VariantFile(fpath)

for rec in vcf.fetch("chr1", 1_000_000, 1_200_000):
Expand Down

0 comments on commit 213403d

Please sign in to comment.