@@ -44,10 +44,16 @@ def handle_findmt():
4444 do_uptree = report_snps .get ()
4545 do_all = report_all .get ()
4646 force = pathvar .get ()
47+ vcf_sample = vcfvar .get ()
48+ buildstr = buildvar .get ()
49+ force_build = 0
50+ if buildstr == 'Build36' : force_build = 36
51+ if buildstr == 'Build37' : force_build = 37
52+ if buildstr == 'Build38' : force_build = 38
4753 fname = fnamevar .get ()
4854 print ("Reporting file: " + fname )
4955 num = int (numbox .get ())
50- rep = haplomt .report (fname , num , do_uptree = do_uptree , do_extra = do_uptree , do_all = do_all , filt = force , force = force )
56+ rep = haplomt .report (fname , num , do_uptree = do_uptree , do_extra = do_uptree , do_all = do_all , filt = force , force = force , vcf_sample = vcf_sample , force_build = force_build )
5157 print ("Done" )
5258 scr .config (state = tk .NORMAL )
5359 scr .delete ('1.0' , tk .END )
@@ -64,10 +70,16 @@ def handle_findy():
6470 do_uptree = report_snps .get ()
6571 do_all = report_all .get ()
6672 force = pathvar .get ()
73+ vcf_sample = vcfvar .get ()
74+ buildstr = buildvar .get ()
75+ force_build = 0
76+ if buildstr == 'Build36' : force_build = 36
77+ if buildstr == 'Build37' : force_build = 37
78+ if buildstr == 'Build38' : force_build = 38
6779 fname = fnamevar .get ()
6880 print ("Reporting file: " + fname )
6981 num = int (numbox .get ())
70- rep = haploy .report (fname , num , do_uptree = do_uptree , do_extra = do_uptree , do_all = do_all , filt = force , force = force )
82+ rep = haploy .report (fname , num , do_uptree = do_uptree , do_extra = do_uptree , do_all = do_all , filt = force , force = force , vcf_sample = vcf_sample , force_build = force_build )
7183 print ("Done" )
7284 scr .config (state = tk .NORMAL )
7385 scr .delete ('1.0' , tk .END )
@@ -86,12 +98,25 @@ def handle_findy():
8698# File
8799fframe = tk .Frame (hdrframe )
88100fframe .pack (fill = 'both' )
101+ if bam_support :
102+ cbutton3 = tk .Button (fframe , text = "Import BAM" , command = handle_bam_select )
103+ cbutton3 .pack (side = tk .LEFT )
89104button = tk .Button (fframe , text = "Choose file" , command = handle_file_select )
90105button .pack (side = tk .LEFT )
91106fnamevar = tk .StringVar ()
92107fnamevar .set ("No file selected" )
93108fnamelabel = tk .Label (fframe , textvariable = fnamevar , anchor = 'w' )
94- fnamelabel .pack (side = tk .RIGHT , fill = 'both' , expand = True )
109+ fnamelabel .pack (side = tk .LEFT , fill = 'both' , expand = True )
110+ vcflabel = tk .Label (fframe , text = 'VCF sample:' , anchor = 'w' )
111+ vcflabel .pack (side = tk .LEFT , fill = 'both' )
112+ vcfvar = tk .StringVar ()
113+ vcfbox = tk .Entry (fframe , textvariable = vcfvar ,width = 10 )
114+ vcfbox .pack (side = tk .LEFT )
115+ buildvar = tk .StringVar ()
116+ buildchoices = {'Auto' , 'Build36' , 'Build37' , 'Build38' }
117+ buildvar .set ('Auto' )
118+ builddropdown = tk .OptionMenu (fframe , buildvar , * buildchoices )
119+ builddropdown .pack (side = tk .LEFT )
95120
96121# Settings
97122sframe = tk .Frame (hdrframe )
@@ -123,9 +148,6 @@ def handle_findy():
123148cbutton1 .pack (side = tk .LEFT , fill = 'x' , expand = True )
124149cbutton2 = tk .Button (cframe , text = "Find Y" , command = handle_findy )
125150cbutton2 .pack (side = tk .LEFT , fill = 'x' , expand = True )
126- if bam_support :
127- cbutton3 = tk .Button (cframe , text = "Import BAM" , command = handle_bam_select )
128- cbutton3 .pack (side = tk .LEFT , fill = 'x' , expand = True )
129151
130152# Result area
131153scr = scrolledtext .ScrolledText (window , wrap = tk .WORD )
0 commit comments