示例#1
0
文件: info.py 项目: ajm/glutton
    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))
示例#2
0
文件: info.py 项目: ajm/glutton
 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() ]))))