Skip to content

Commit

Permalink
Merge pull request #4 from amplab/master
Browse files Browse the repository at this point in the history
clearer error message for variant pos collisions
  • Loading branch information
kwestbrooks committed May 20, 2014
2 parents dc5ed97 + 6e6427a commit da7d3ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smashbenchmarking/vcf_eval/chrom_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _vcf_iterator(self,info=".",locs=None):
def _add_variant(self,var):
if ( var.pos in self.all_variants ):
#raise Exception("Two variants have the exact same start position: "+ str(self.all_variants[var.pos]) + 'and' + str(var))
print("Two variants have the exact same start position: "+ str(self.all_variants[var.pos]) + ' and ' + str(var)+". Variant excluded.",file=sys.stderr )
print("Variant " + self.chrom + " " + str(var) + " will not be evaluated; " + str(self.all_variants[var.pos]) + " already at that start position",file=sys.stderr)
return
# careful as adding a variant requires a later sorting of all the positions
self._var_locations[var.var_type].append(var.pos)
Expand Down

0 comments on commit da7d3ed

Please sign in to comment.