예제 #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() ]))))