@@ -31,7 +31,7 @@ def __init__(self, parent = None, config = 'msatcommander.conf'):
31
31
def open (self ):
32
32
'''get the input filename - mutiple file input is not supported'''
33
33
self .infile = QtGui .QFileDialog .getOpenFileName (self ,\
34
- "Select Fasta to Search" ,os .path .expanduser ('~' ), "Fasta (*.fsa *.fa *.fasta)" )
34
+ "Select Fasta to Search" ,os .path .expanduser ('~' ), "Fasta (*.fsa *.fa *.fasta *.fna )" )
35
35
# ==================
36
36
# = DEBUG EASIFIER =
37
37
# ==================
@@ -525,13 +525,14 @@ def readSearchSave(self):
525
525
#pdb.set_trace()
526
526
# fixing bug in primer number reporting reported by Jarek Byrk
527
527
# Max Planck Institute for Evolutionary Biology
528
- locus_specific_primer = record .primers [motif ][record .matches [motif ].index (match )]
529
- if record .primers :
530
- self .storePrimers (index , msat_index , locus_specific_primer )
531
- if record .primers \
532
- and (self .pigtailPrimersCheckBox .isChecked () \
533
- or self .tagPrimersCheckBox .isChecked ()):
534
- self .storeTaggedPrimers (index , msat_index , locus_specific_primer )
528
+ if self .designPrimersCheckBox .isChecked ():
529
+ locus_specific_primer = record .primers [motif ][record .matches [motif ].index (match )]
530
+ if record .primers :
531
+ self .storePrimers (index , msat_index , locus_specific_primer )
532
+ if record .primers \
533
+ and (self .pigtailPrimersCheckBox .isChecked () \
534
+ or self .tagPrimersCheckBox .isChecked ()):
535
+ self .storeTaggedPrimers (index , msat_index , locus_specific_primer )
535
536
msat_index += 1
536
537
537
538
if self .combineLociCheckBox .isChecked ():
@@ -560,13 +561,14 @@ def readSearchSave(self):
560
561
# ensure the same bug doesn't hit us as above:
561
562
#QtCore.pyqtRemoveInputHook()
562
563
#pdb.set_trace()
563
- locus_specific_primer = record .primers [motif ][pos ]
564
- if record .primers :
565
- self .storePrimers (index , combine_index , locus_specific_primer )
566
- if record .primers \
567
- and (self .pigtailPrimersCheckBox .isChecked () \
568
- or self .tagPrimersCheckBox .isChecked ()):
569
- self .storeTaggedPrimers (index , combine_index , locus_specific_primer )
564
+ if self .designPrimersCheckBox .isChecked ():
565
+ locus_specific_primer = record .primers [motif ][pos ]
566
+ if record .primers :
567
+ self .storePrimers (index , combine_index , locus_specific_primer )
568
+ if record .primers \
569
+ and (self .pigtailPrimersCheckBox .isChecked () \
570
+ or self .tagPrimersCheckBox .isChecked ()):
571
+ self .storeTaggedPrimers (index , combine_index , locus_specific_primer )
570
572
combine_index += 1
571
573
572
574
self .conn .commit ()
0 commit comments