def generate_full_checksum(self) : checksums = [self.params['db_checksum'], self.params['sample_checksum']] if None in checksums : raise GluttonException('both db and sample checksums must be set') return string_md5(" ".join(checksums))
def generate_sample_checksum(self) : return string_md5(" ".join(sorted(reduce(operator.add, [ (i['contigs_checksum'], str(i['bam_checksum'])) for i in self.params['samples'].values() ]))))