From 79738067163c31e11c809f81365ec50234bb30f7 Mon Sep 17 00:00:00 2001 From: depristo Date: Thu, 15 Apr 2010 14:25:02 +0000 Subject: [PATCH] interim update git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3173 348d0f76-0448-11de-a6fe-93d51630548a --- python/Verify1KGArchiveBAMs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/Verify1KGArchiveBAMs.py b/python/Verify1KGArchiveBAMs.py index 21e3c88a8..f9fa91007 100644 --- a/python/Verify1KGArchiveBAMs.py +++ b/python/Verify1KGArchiveBAMs.py @@ -200,6 +200,7 @@ def compareAlignmentIndices(remoteAlignmentIndex, alignmentIndex): print ' md5s: local=%s remote=%s' % (raImd5, laImd5) if raImd5 <> laImd5: print ' [FAIL] -- alignment indices do not have the same hash!' + sys.exit(1) else: print ' [PASS] -- alignment indices are the same' @@ -250,6 +251,9 @@ if __name__ == "__main__": FTPSERVER = FTP(ftpParsed[1]) FTPSERVER.login() + displayChangeLog(OPTIONS.remoteChangeLog) + compareAlignmentIndices(OPTIONS.remoteAlignmentIndex, OPTIONS.alignmentIndex) + results = dict() for file in itertools.chain(readAlignmentIndex(OPTIONS.alignmentIndex), filesInLocalPath(root, OPTIONS.scanLocal )): #print line @@ -258,9 +262,6 @@ if __name__ == "__main__": compared = validateFile( file, root, ftpParsed[2] ) results[file] = compared #localIndex - - compareAlignmentIndices(OPTIONS.remoteAlignmentIndex, OPTIONS.alignmentIndex) - displayChangeLog(OPTIONS.remoteChangeLog) printHeaderSep() print 'SUMMARY: Total files examined', len(results)