def __init__(self, *args, **kwargs): self.sample_id = kwargs.pop('sample_id') self.vcf_sample = kwargs.pop('vcf_sample') self.now = datetime.now() super(ResultStream, self).__init__(*args, **kwargs) self.genotypes = dict(Genotype.objects.values_list('value', 'pk')) self.variants = VariantCache()
def setUp(self): self.vcache = VariantCache() self.vcache._cache.clear()