def remove_variants(self, variants):
chroms = set([i.chrom for i in variants])<EOL>for chrom in chroms:<EOL><INDENT>if self.append_chromosome:<EOL><INDENT>chrom = '<STR_LIT>' % chrom<EOL><DEDENT>to_delete = [pos for pos in self.positions[chrom] if pos in variants]<EOL>for pos in to_delete:<EOL><INDENT>del self.positions[chrom][pos]<EOL><DEDENT><DEDENT>
Remove a list of variants from the positions we are scanning