From 987fced151364452378c1a1a9eaf11d9b044372f Mon Sep 17 00:00:00 2001 From: chartl Date: Wed, 9 Dec 2009 23:26:26 +0000 Subject: [PATCH] Should read truth data from the parser options rather than direct from args git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2301 348d0f76-0448-11de-a6fe-93d51630548a --- python/snpSelector.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/snpSelector.py b/python/snpSelector.py index 16f230e04..e01725e3e 100755 --- a/python/snpSelector.py +++ b/python/snpSelector.py @@ -615,6 +615,12 @@ def main(): fields = OPTIONS.fields.split(',') truthVCF = None + #print("LENGTH OF ARGS "+str(len(args))) + + if OPTIONS.truth <> None: + truthVCF = OPTIONS.truth + readTruth(truthVCF) + if len(args) > 1: truthVCF = args[1] TRUTH_CALLS = readTruth(truthVCF) @@ -654,4 +660,4 @@ if __name__ == "__main__": p.sort_stats('time').print_stats(10) p.sort_stats('time', 'cum').print_stats(.5, 'init') else: - main() \ No newline at end of file + main()