Skip to content

Commit 90f41e4

Browse files
committed
Updating gitignore
1 parent 7a92c43 commit 90f41e4

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,3 @@ dist/
2929
build/
3030
*.egg-info/
3131
*.egg
32-
33-
# gitnexus stuff
34-
/.gitnexus/
35-
/.claude/
36-
AGENTS.md
37-
CLAUDE.md

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- gitnexus:start -->
22
# GitNexus — Code Intelligence
33

4-
This project is indexed by GitNexus as **NEAT** (2742 symbols, 5450 relationships, 62 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
4+
This project is indexed by GitNexus as **NEAT** (3389 symbols, 6682 relationships, 71 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
55

66
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
77

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- gitnexus:start -->
22
# GitNexus — Code Intelligence
33

4-
This project is indexed by GitNexus as **NEAT** (2742 symbols, 5450 relationships, 62 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
4+
This project is indexed by GitNexus as **NEAT** (3389 symbols, 6682 relationships, 71 execution flows). Use the GitNexus MCP tools to understand code, assess impact, and navigate safely.
55

66
> If any GitNexus tool warns the index is stale, run `npx gitnexus analyze` in terminal first.
77

neat/read_simulator/utils/vcf_func.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,11 @@ def parse_input_vcf(
244244
)
245245
elif len(ref) > len(alt) and ref.startswith(alt):
246246
# type = deletion
247+
# length is the full reference span (number of bases the deletion
248+
# covers, including the shared anchor base), matching how deletions
249+
# are reconstructed on output and generated by the mutation model.
247250
temp_variant = Deletion(
248-
location, len(alt), temp_genotype, record[5], is_input=True, kwargs=data
251+
location, len(ref), temp_genotype, record[5], is_input=True, kwargs=data
249252
)
250253
elif len(alt) > len(ref) and alt.startswith(ref):
251254
# type = insertion

tests/test_read_simulator/test_vcf_func.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ def test_parse_deletion(tmp_path, ref_fasta, empty_input_dict, opts):
167167
variants = empty_input_dict["chr1"].contig_variants.get(4, [])
168168
assert len(variants) == 1
169169
assert isinstance(variants[0], Deletion)
170+
# length is the full reference span (len(ref)), not len(alt). For ACGT -> A
171+
# that is 4, so the deletion is reconstructed as ACGT -> A on output rather
172+
# than being truncated to a single base. Regression test for issue #305.
173+
assert variants[0].length == 4
170174

171175

172176
def test_parse_insertion(tmp_path, ref_fasta, empty_input_dict, opts):

0 commit comments

Comments
 (0)