Skip to content

Commit

Permalink
Merge pull request #76 from oxfordmmm/fix/allow-vcf-overlaps
Browse files Browse the repository at this point in the history
fix: bump gumpy to allow vcf overlaps
  • Loading branch information
JeremyWesthead authored Jul 8, 2024
2 parents 16678ab + 21c15b1 commit 952e1dd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions bin/merge-vcfs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ def fetch_minos_positions(minos_vcf: Path) -> set[int]:
positions.add(pos)
else:
# Check if the indel is a deletion or insertion (deleted bases need excluding too)
call, bases = vcf.calls[(pos, m_type)]["call"]
if call == "ins":
positions.add(pos)
else:
positions.update(range(pos, pos + len(bases)))
for item in vcf.calls[(pos, m_type)]:
call, bases = item["call"]
if call == "ins":
positions.add(pos)
else:
positions.update(range(pos, pos + len(bases)))
return positions


Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package_dir =
packages = find:
python_requires = >=3.10
install_requires =
gumpy>=1.3.3
gumpy>=1.3.4
piezo>=0.8.3
vcf_subset>=1.1.2
numpy
Expand Down
Binary file modified tests/test-cases/TEST-DNA-no-overlap.gbk.pkl
Binary file not shown.
Binary file modified tests/test-cases/TEST-DNA.gbk.pkl
Binary file not shown.

0 comments on commit 952e1dd

Please sign in to comment.