Skip to content

Commit

Permalink
bumping v and fixing print outs
Browse files Browse the repository at this point in the history
  • Loading branch information
aineniamh committed Nov 13, 2024
1 parent baaa479 commit 4c82c91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion snipit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
_program = "snipit"
__version__ = "1.5"
__version__ = "1.6"
6 changes: 1 addition & 5 deletions snipit/scripts/snp_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,18 +489,14 @@ def make_graph(num_seqs, num_snps, amb_dict, snp_records,
# Add name of record, ref, SNP in record, y_level and False for "recombi_mode" colour logic
snp_dict[x_position].append((record, ref, base, y_level, False))

print(snp_dict.keys())
print(len(snp_dict))
print(len(included_positions),included_positions)
print(len(excluded_positions),excluded_positions)

# gather the positions that are not explicitly excluded,
# but are not among those to be included
positions_not_included=set()
if len(included_positions)>0:
# of the positions present,
# gather a set of positions which should NOT be included in the output
positions_not_included = set(snp_dict.keys()) - included_positions
print("positions not included", positions_not_included)

# remove positions which should be ignored or are not included (pop items from union of the two sets)
for pos in excluded_positions | positions_not_included:
Expand Down

0 comments on commit 4c82c91

Please sign in to comment.